Skip to content

Commit

Permalink
Merge branch 'master' into v1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronLasseigne committed Jun 13, 2014
2 parents 6d11f3e + 2cbec8e commit 040d1f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ require 'rspec/core/rake_task'
require 'rubocop/rake_task'

RSpec::Core::RakeTask.new
Rubocop::RakeTask.new
RuboCop::RakeTask.new

task default: %w[spec rubocop]
4 changes: 2 additions & 2 deletions spec/active_interaction/modules/validation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
let(:inputs) { { name: 1 } }

before do
filter.stub(:cast).and_return(1)
allow(filter).to receive(:cast).and_return(1)
end

it 'returns no errors' do
Expand All @@ -31,7 +31,7 @@

context 'filter throws' do
before do
filter.stub(:cast).and_raise(exception)
allow(filter).to receive(:cast).and_raise(exception)
end

context 'InvalidValueError' do
Expand Down

0 comments on commit 040d1f3

Please sign in to comment.