Sha256: 70bdb66a66110dcec746012973fe398560105ea72a51403a40b77d1183659496

Contents?: true

Size: 396 Bytes

Versions: 25

Compression:

Stored size: 396 Bytes

Contents

# encoding: utf-8

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

25 entries across 25 versions & 1 rubygems

Version Path
mutant-0.5.13 test_app/spec/shared/method_filter_parse_behavior.rb
mutant-0.5.12 test_app/spec/shared/method_filter_parse_behavior.rb
mutant-0.5.11 test_app/spec/shared/method_filter_parse_behavior.rb
mutant-0.5.10 test_app/spec/shared/method_filter_parse_behavior.rb
mutant-0.5.9 test_app/spec/shared/method_filter_parse_behavior.rb
mutant-0.5.8 test_app/spec/shared/method_filter_parse_behavior.rb
mutant-0.5.7 test_app/spec/shared/method_filter_parse_behavior.rb
mutant-0.5.6 test_app/spec/shared/method_filter_parse_behavior.rb
mutant-0.5.5 test_app/spec/shared/method_filter_parse_behavior.rb
mutant-0.5.4 test_app/spec/shared/method_filter_parse_behavior.rb
mutant-0.5.3 test_app/spec/shared/method_filter_parse_behavior.rb
mutant-0.5.2 test_app/spec/shared/method_filter_parse_behavior.rb
mutant-0.5.1 test_app/spec/shared/method_filter_parse_behavior.rb
mutant-0.5.0 test_app/spec/shared/method_filter_parse_behavior.rb
mutant-0.3.6 test_app/spec/shared/method_filter_parse_behavior.rb
mutant-0.3.5 test_app/spec/shared/method_filter_parse_behavior.rb
mutant-0.3.4 test_app/spec/shared/method_filter_parse_behavior.rb
mutant-0.3.3 test_app/spec/shared/method_filter_parse_behavior.rb
mutant-0.3.2 test_app/spec/shared/method_filter_parse_behavior.rb
mutant-0.3.1 test_app/spec/shared/method_filter_parse_behavior.rb