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
|
describe "#collect_user_info" do
|
||||||
subject { instance.send(:collect_user_info) }
|
subject { instance.send(:collect_user_info) }
|
||||||
|
|
||||||
context "exporting a user" do
|
|
||||||
it "collects user info" do
|
it "collects user info" do
|
||||||
subject
|
subject
|
||||||
expect(instance.instance_variable_get(:@obj)).to eq(user_params.merge({
|
expect(instance.instance_variable_get(:@obj)).to eq(user_params.merge({
|
||||||
|
@ -68,7 +67,6 @@ RSpec.describe Exporter do
|
||||||
}))
|
}))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
describe "#collect_questions" do
|
describe "#collect_questions" do
|
||||||
subject { instance.send(:collect_questions) }
|
subject { instance.send(:collect_questions) }
|
||||||
|
@ -175,7 +173,6 @@ RSpec.describe Exporter do
|
||||||
|
|
||||||
subject { instance.send(:collect_smiles) }
|
subject { instance.send(:collect_smiles) }
|
||||||
|
|
||||||
context "exporting a user" do
|
|
||||||
it "collects reactions" do
|
it "collects reactions" do
|
||||||
subject
|
subject
|
||||||
expect(instance.instance_variable_get(:@obj)[:smiles]).to eq(smiles.map do |s|
|
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
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
describe "#finalize" do
|
describe "#finalize" do
|
||||||
let(:fake_rails_root) { Pathname(Dir.mktmpdir) }
|
let(:fake_rails_root) { Pathname(Dir.mktmpdir) }
|
||||||
|
@ -219,7 +215,7 @@ RSpec.describe Exporter do
|
||||||
|
|
||||||
subject { instance.send(:finalize) }
|
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(:dir) { instance.instance_variable_get(:@export_dirname) }
|
||||||
let(:name) { instance.instance_variable_get(:@export_filename) }
|
let(:name) { instance.instance_variable_get(:@export_filename) }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue