spec/chanko/unit_proxy_spec.rb in chanko-2.0.6 vs spec/chanko/unit_proxy_spec.rb in chanko-2.0.7
- old
+ new
@@ -6,17 +6,17 @@
Class.new { include UnitProxyProvider }.new
end
describe "#active?" do
it "returns activation status of unit" do
- view.unit(:example_unit).should be_active
- view.unit(:inactive_unit).should_not be_active
+ expect(view.unit(:example_unit)).to be_active
+ expect(view.unit(:inactive_unit)).not_to be_active
end
end
describe "#method_missing" do
it "calls prefixed method" do
- view.should_receive(:__example_unit_test)
+ expect(view).to receive(:__example_unit_test)
view.unit(:example_unit).test
end
end
end
end