Closed benzelano closed 13 years ago
Patrick Klingemann commented
I’m pretty sure this was because I was using Ruby 1.8.5. The issue has been resolved by switching to 1.8.7 (REE). You may close if necessary.
Patrick,
Thanks for the heads up. I apologize for having taken so long to address this ticket. I haven’t tested this on Ruby 1.8.5 so I actually have no idea how it runs on that version. However, what I’ve done is added notes to the README on versions of Ruby are officially supported. See the following commit: http://github.com/pluginaweek/state_machine/commit/791507c856e892129eab93627527185810101ff7
Patrick Klingemann opened this issue
I am having trouble getting my state machine to set the initial state, it was always coming up nil in my staging environment. It works fine in production and development. So I decided to run the tests on state_machine and I’m receiving failures. Is this a configuration issue on my server? Below are the failures:
1) Failure: test_should_allow_chaining_scopes(ActiveRecordTest::MachineTest) [./test/unit/integrations/active_record_test.rb:142:in
test_should_allow_chaining_scopes’ /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/testing/setup_and_teardown.rb:62:in
send’ /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/testing/setup_and_teardown.rb:62:in `run’]: <[#<#Class:0x2b7eaef45e40 id: 2, state: nil>]> expected but was <[]>.2) Failure: test_should_only_include_records_with_state_in_singular_with_scope(ActiveRecordTest::MachineTest) [./test/unit/integrations/active_record_test.rb:101:in
test_should_only_include_records_with_state_in_singular_with_scope’ /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/testing/setup_and_teardown.rb:62:in
send’ /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/testing/setup_and_teardown.rb:62:in `run’]: <[#<#Class:0x2b7eaf11bf80 id: 1, state: nil>]> expected but was <[]>.3) Failure: test_should_only_include_records_with_states_in_plural_with_scope(ActiveRecordTest::MachineTest) [./test/unit/integrations/active_record_test.rb:112:in
test_should_only_include_records_with_states_in_plural_with_scope’ /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/testing/setup_and_teardown.rb:62:in
send’ /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/testing/setup_and_teardown.rb:62:in `run’]: <[#<#Class:0x2b7eaf0c27f0 id: 1, state: nil>,<#Class:0x2b7eaf0c27f0 id: 2, state: nil>]> expected but was
<[]>.
4) Failure: test_should_only_include_records_without_state_in_singular_without_scope(ActiveRecordTest::MachineTest) [./test/unit/integrations/active_record_test.rb:123:in
test_should_only_include_records_without_state_in_singular_without_scope’ /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/testing/setup_and_teardown.rb:62:in
send’ /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/testing/setup_and_teardown.rb:62:in `run’]: <[#<#Class:0x2b7eaf03b098 id: 1, state: nil>]> expected but was <[]>.5) Failure: test_should_only_include_records_without_states_in_plural_without_scope(ActiveRecordTest::MachineTest) [./test/unit/integrations/active_record_test.rb:135:in
test_should_only_include_records_without_states_in_plural_without_scope’ /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/testing/setup_and_teardown.rb:62:in
send’ /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/testing/setup_and_teardown.rb:62:in `run’]: <[#<#Class:0x2b7eaefef710 id: 1, state: nil>,<#Class:0x2b7eaefef710 id: 2, state: nil>]> expected but was
<[]>.
6) Failure: test_should_use_machine_default(ActiveRecordTest::MachineWithColumnDefaultTest) [./test/unit/integrations/active_record_test.rb:369:in
test_should_use_machine_default’ /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/testing/setup_and_teardown.rb:62:in
send’ /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/testing/setup_and_teardown.rb:62:in `run’]: <"parked"> expected but was <"idling">.7) Failure: test_should_return_true_for_predicate_if_matches_current_value(ActiveRecordTest::MachineWithColumnStateAttributeTest) [./test/unit/integrations/active_record_test.rb:415:in
test_should_return_true_for_predicate_if_matches_current_value’ /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/testing/setup_and_teardown.rb:62:in
send’ /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/testing/setup_and_teardown.rb:62:in `run’]: