spec/integration/role_spec.rb in arrthorizer-0.1.3 vs spec/integration/role_spec.rb in arrthorizer-0.2.0
- old
+ new
@@ -3,10 +3,10 @@
describe Arrthorizer::Role do
context "when a new ContextRole class is created" do
let(:context_role) { class TestRole < Arrthorizer::ContextRole; end; TestRole.instance }
specify "that role is stored" do
- Arrthorizer::Role.get(context_role.to_key).should be context_role
+ expect(Arrthorizer::Role.get(context_role.to_key)).to be context_role
end
after :each do
if defined?(TestRole)
Object.send(:remove_const, :TestRole)