Remove unnecessary context blocks
This commit is contained in:
parent
37bc1e64de
commit
45a87bf2b4
|
@ -46,7 +46,6 @@ RSpec.describe Exporter do
|
|||
describe "#collect_user_info" do
|
||||
subject { instance.send(:collect_user_info) }
|
||||
|
||||
context "exporting a user" do
|
||||
it "collects user info" do
|
||||
subject
|
||||
expect(instance.instance_variable_get(:@obj)).to eq(user_params.merge({
|
||||
|
@ -68,7 +67,6 @@ RSpec.describe Exporter do
|
|||
}))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe "#collect_questions" do
|
||||
subject { instance.send(:collect_questions) }
|
||||
|
@ -175,7 +173,6 @@ RSpec.describe Exporter do
|
|||
|
||||
subject { instance.send(:collect_smiles) }
|
||||
|
||||
context "exporting a user" do
|
||||
it "collects reactions" do
|
||||
subject
|
||||
expect(instance.instance_variable_get(:@obj)[:smiles]).to eq(smiles.map do |s|
|
||||
|
@ -201,7 +198,6 @@ RSpec.describe Exporter do
|
|||
end)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe "#finalize" do
|
||||
let(:fake_rails_root) { Pathname(Dir.mktmpdir) }
|
||||
|
@ -219,7 +215,7 @@ RSpec.describe Exporter do
|
|||
|
||||
subject { instance.send(:finalize) }
|
||||
|
||||
context "exporting a user" do
|
||||
context "exporting a user without a profile picture or header" do
|
||||
let(:dir) { instance.instance_variable_get(:@export_dirname) }
|
||||
let(:name) { instance.instance_variable_get(:@export_filename) }
|
||||
|
||||
|
|
Loading…
Reference in New Issue