1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00

Using Ruby 1.8 hash syntax

This commit is contained in:
Johnny Shields 2013-01-08 04:47:58 +09:00
parent 457db7e3ea
commit 1b4e44709b

View file

@ -1,4 +1,4 @@
describe 'mongoid', if: Gem::Version.create(RUBY_VERSION.dup) >= Gem::Version.create('1.9.3') do
describe 'mongoid', :if => Gem::Version.create(RUBY_VERSION.dup) >= Gem::Version.create('1.9.3') do
before(:all) do
require 'mongoid'
@ -58,7 +58,7 @@ describe 'mongoid', if: Gem::Version.create(RUBY_VERSION.dup) >= Gem::Version.cr
describe "#find_in_state" do
let!(:model) { SimpleNewDslMongoid.create!(status: :unknown_scope) }
let!(:model) { SimpleNewDslMongoid.create!(:status => :unknown_scope) }
let!(:model_id) { model._id }
it "should respond to method" do
@ -83,7 +83,7 @@ describe 'mongoid', if: Gem::Version.create(RUBY_VERSION.dup) >= Gem::Version.cr
describe "#count_in_state" do
before do
3.times { SimpleNewDslMongoid.create!(status: :unknown_scope) }
3.times { SimpleNewDslMongoid.create!(:status => :unknown_scope) }
end
it "should respond to method" do
@ -105,8 +105,8 @@ describe 'mongoid', if: Gem::Version.create(RUBY_VERSION.dup) >= Gem::Version.cr
describe "#with_state_scope" do
before do
3.times { SimpleNewDslMongoid.create!(status: :unknown_scope) }
2.times { SimpleNewDslMongoid.create!(status: :new) }
3.times { SimpleNewDslMongoid.create!(:status => :unknown_scope) }
2.times { SimpleNewDslMongoid.create!(:status => :new) }
end
it "should respond to method" do