Sha256: a6e78148e29488ab8fa656a9be9fcda3684a60637ccb822067b35fd63a14e5e2

Contents?: true

Size: 479 Bytes

Versions: 11

Compression:

Stored size: 479 Bytes

Contents

RSpec.describe Mutant::Subject, '#context' do
  subject { object.context }

  let(:class_under_test) do
    Class.new(described_class)
  end

  let(:object)  { class_under_test.new(config, context, node) }
  let(:config)  { Mutant::Config::DEFAULT                     }
  let(:node)    { double('Node')                              }
  let(:context) { double('Context')                           }

  it { should be(context) }

  it_should_behave_like 'an idempotent method'
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
mutant-0.7.4 spec/unit/mutant/subject/context_spec.rb
mutant-0.7.3 spec/unit/mutant/subject/context_spec.rb
mutant-0.7.2 spec/unit/mutant/subject/context_spec.rb
mutant-0.7.1 spec/unit/mutant/subject/context_spec.rb
mutant-0.6.7 spec/unit/mutant/subject/context_spec.rb
mutant-0.6.6 spec/unit/mutant/subject/context_spec.rb
mutant-0.6.5 spec/unit/mutant/subject/context_spec.rb
mutant-0.6.4 spec/unit/mutant/subject/context_spec.rb
mutant-0.6.3 spec/unit/mutant/subject/context_spec.rb
mutant-0.6.2 spec/unit/mutant/subject/context_spec.rb
mutant-0.6.0 spec/unit/mutant/subject/context_spec.rb