spec/statesman/adapters/shared_examples.rb in statesman-0.0.1 vs spec/statesman/adapters/shared_examples.rb in statesman-0.1.0

- old
+ new

@@ -31,10 +31,13 @@ it { should change(adapter.history, :count).by(1) } context "the new transition" do subject { create } it { should be_a(transition_class) } - its(:to_state) { should be(to) } + + it "should have the initial state" do + expect(subject.to_state.to_sym).to eq(to) + end context "with no previous transition" do its(:sort_key) { should be(0) } end