spec/unit/builder/scope_spec.rb in evil-client-3.0.4 vs spec/unit/builder/scope_spec.rb in evil-client-3.1.0
- old
+ new
@@ -51,30 +51,30 @@
expect(subject).to eq parent
end
end
describe "#new" do
- subject { builder.new options }
+ subject { builder.new(**options) }
it "creates scope with inherited options accepted by settings" do
expect(subject).to be_a Evil::Client::Container::Scope
expect(subject.schema).to eq schema
expect(subject.options).to eq id: 83, user: "foo", password: "qux"
end
end
describe "#call" do
- subject { builder.call options }
+ subject { builder.call(**options) }
it "creates scope with inherited options accepted by settings" do
expect(subject).to be_a Evil::Client::Container::Scope
expect(subject.schema).to eq schema
expect(subject.options).to eq id: 83, user: "foo", password: "qux"
end
end
describe "#[]" do
- subject { builder[options] }
+ subject { builder[**options] }
it "creates scope with inherited options accepted by settings" do
expect(subject).to be_a Evil::Client::Container::Scope
expect(subject.schema).to eq schema
expect(subject.options).to eq id: 83, user: "foo", password: "qux"