Sha256: e1edc6cd9833bda6c91a817a75075b2e612d328cfc39443a790570017f02da52

Contents?: true

Size: 366 Bytes

Versions: 7

Compression:

Stored size: 366 Bytes

Contents

shared_examples_for 'a method filter parse result' do
  before do
    expected_class.stub(:new => response)
  end

  let(:response) { double('Response') }

  it { should be(response) }

  it 'should initialize method filter with correct arguments' do
    expected_class.should_receive(:new).with(TestApp::Literal, :string).and_return(response)
    subject
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mutant-0.3.0.beta21 test_app/spec/shared/method_filter_parse_behavior.rb
mutant-0.3.0.beta20 test_app/spec/shared/method_filter_parse_behavior.rb
mutant-0.3.0.beta19 test_app/spec/shared/method_filter_parse_behavior.rb
mutant-0.3.0.beta18 test_app/spec/shared/method_filter_parse_behavior.rb
mutant-0.3.0.beta17 test_app/spec/shared/method_filter_parse_behavior.rb
mutant-0.3.0.beta16 test_app/spec/shared/method_filter_parse_behavior.rb
mutant-0.3.0.beta15 test_app/spec/shared/method_filter_parse_behavior.rb