Navigation Menu

Skip to content

Commit

Permalink
Fix rspec expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
mbj committed Mar 30, 2014
1 parent 4d20a46 commit 248131e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spec/unit/mutant/mutator_spec.rb
Expand Up @@ -16,7 +16,7 @@ class Block
attr_reader :arguments

def called?
defined?(@arguments)
!!defined?(@arguments)
end

def call(*arguments)
Expand All @@ -41,12 +41,12 @@ def dispatch

it 'should call block' do
subject
block.should be_called
expect(block.called?).to be(true)
end

it 'should call block with generated' do
subject
block.arguments.should eql([generated])
expect(block.arguments).to eql([generated])
end
end

Expand All @@ -55,7 +55,7 @@ def dispatch

it 'should not call block' do
subject
block.should_not be_called
expect(block.called?).to be(false)
end
end
end
Expand All @@ -68,12 +68,12 @@ def dispatch

it 'should call block' do
subject
block.should be_called
expect(block.called?).to be(true)
end

it 'should call block with generated object' do
subject
block.arguments.should eql([generated])
expect(block.arguments).to eql([generated])
end
end

Expand Down

0 comments on commit 248131e

Please sign in to comment.