Sha256: b2636f198d195234105bcd50dc166b5832ee7982d64281f29cb10733e6841ae7

Contents?: true

Size: 484 Bytes

Versions: 6

Compression:

Stored size: 484 Bytes

Contents

require 'spec_helper.rb'

describe ::Draftsman do
  describe 'Sanity Test' do
    it { should be_a Module }
  end

  describe :whodunnit do
    before(:all) { ::Draftsman.whodunnit = 'foobar' }
    # Clears out `source` before each test
    its(:whodunnit) { should be_nil }
  end

  describe :controller_info do
    before(:all) { ::Draftsman.controller_info = { foo: 'bar' } }
    # Clears out `controller_info` before each test
    its(:controller_info) { should == {} }
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
draftsman-0.3.1 spec/draftsman_spec.rb
draftsman-0.3.0 spec/draftsman_spec.rb
draftsman-0.2.1 spec/draftsman_spec.rb
draftsman-0.2.0 spec/draftsman_spec.rb
draftsman-0.1.1 spec/draftsman_spec.rb
draftsman-0.1.0 spec/draftsman_spec.rb