Sha256: e881c255c0c6cf948d78a92fd9ae5c41ce946156c0ea51131809298c884fe70e

Contents?: true

Size: 453 Bytes

Versions: 18

Compression:

Stored size: 453 Bytes

Contents

require 'spec_helper'

describe Mutant::Matcher::Method, '.parse' do
  subject { described_class.parse(input) }

  let(:response) { mock('Response') }
  let(:input)    { mock('Input')    }

  let(:classifier) { described_class::Classifier }

  before do
    classifier.stub(:run => response)
  end

  it { should be(response) }

  it 'should call classifier' do
    classifier.should_receive(:run).with(input).and_return(response)
    subject
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
mutant-0.2.20 spec/unit/mutant/matcher/method/class_methods/parse_spec.rb
mutant-0.2.17 spec/unit/mutant/matcher/method/class_methods/parse_spec.rb
mutant-0.2.16 spec/unit/mutant/matcher/method/class_methods/parse_spec.rb
mutant-0.2.15 spec/unit/mutant/matcher/method/class_methods/parse_spec.rb
mutant-0.2.14 spec/unit/mutant/matcher/method/class_methods/parse_spec.rb
mutant-0.2.13 spec/unit/mutant/matcher/method/class_methods/parse_spec.rb
mutant-0.2.12 spec/unit/mutant/matcher/method/class_methods/parse_spec.rb
mutant-0.2.11 spec/unit/mutant/matcher/method/class_methods/parse_spec.rb
mutant-0.2.9 spec/unit/mutant/matcher/method/class_methods/parse_spec.rb
mutant-0.2.8 spec/unit/mutant/matcher/method/class_methods/parse_spec.rb
mutant-0.2.7 spec/unit/mutant/matcher/method/class_methods/parse_spec.rb
mutant-0.2.6 spec/unit/mutant/matcher/method/class_methods/parse_spec.rb
mutant-0.2.5 spec/unit/mutant/matcher/method/class_methods/parse_spec.rb
mutant-0.2.4 spec/unit/mutant/matcher/method/class_methods/parse_spec.rb
mutant-0.2.3 spec/unit/mutant/matcher/method/class_methods/parse_spec.rb
mutant-0.2.2 spec/unit/mutant/matcher/method/class_methods/parse_spec.rb
mutant-0.2.1 spec/unit/mutant/matcher/method/class_methods/parse_spec.rb
mutant-0.2.0 spec/unit/mutant/matcher/method/class_methods/parse_spec.rb