Sha256: 156b16f32b9628436c54754e24858920036072e99d73fae3db955bc146d3747f

Contents?: true

Size: 289 Bytes

Versions: 4

Compression:

Stored size: 289 Bytes

Contents

require File.join(File.dirname(__FILE__), 'spec_helper.rb')

describe "SimpleState" do
  it "should add a state_machine method to the class" do
    Class.new { extend SimpleState }.methods.map do |m|
      # Ruby 1.9 compat.
      m.to_sym
    end.should include(:state_machine)
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
anthonyw-simple_state-0.1.2 spec/simple_state_spec.rb
anthonyw-simple_state-0.1.3 spec/simple_state_spec.rb
anthonyw-simple_state-0.2.0 spec/simple_state_spec.rb
antw-simple_state-0.2.1 spec/simple_state_spec.rb