Sha256: 8d78eea2f0e274a0d3ed6312efc9b94ca8b21811f4faa3926f1dc5a925288aad

Contents?: true

Size: 346 Bytes

Versions: 2

Compression:

Stored size: 346 Bytes

Contents

require 'sham/base'

describe Sham::Base do
  let(:klass){ double }

  it 'should call sham! on the class' do
    klass.should_receive(:sham!)
    described_class.new(klass).sham!
  end

  it 'should pass sham options' do
    options = double
    klass.should_receive(:sham!).with(options)
    described_class.new(klass, options).sham!
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sham-2.0.0 spec/lib/sham/base_spec.rb
sham-1.2.0 spec/lib/sham/base_spec.rb