Sha256: 269dc378c822d763058e26bae8efc86ce5c8eac5db6640a1f8948d11c2141064

Contents?: true

Size: 369 Bytes

Versions: 3

Compression:

Stored size: 369 Bytes

Contents

require 'spec_helper'

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

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

  let(:object)  { class_under_test.new(context, node) }
  let(:node)    { mock('Node')     }
  let(:context) { mock('Context') }

  it { should be(context) }

  it_should_behave_like 'an idempotent method'
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mutant-0.3.0.beta4 spec/unit/mutant/subject/context_spec.rb
mutant-0.3.0.beta3 spec/unit/mutant/subject/context_spec.rb
mutant-0.3.0.beta2 spec/unit/mutant/subject/context_spec.rb