Skip to content

Instantly share code, notes, and snippets.

@alex-tan
Created June 12, 2012 07:13
Show Gist options
  • Save alex-tan/2915829 to your computer and use it in GitHub Desktop.
Save alex-tan/2915829 to your computer and use it in GitHub Desktop.
require 'spec_helper'
describe Record do
describe "move_to_state_two" do
before(:each) do
@record = Record.new
end
it "should call state_two_event" do
@record.expects(:state_two_event)
@record.move_to_state_two!
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment