From 08d0511c90938f6a2b1e04db317646b8b663d100 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorsten=20B=C3=B6ttger?= Date: Sun, 1 Dec 2013 00:23:34 +0100 Subject: [PATCH] still supporting Ruby 1.8.7 --- spec/models/mongoid/no_scope_mongoid.rb | 2 +- spec/models/mongoid/simple_mongoid.rb | 2 +- spec/models/mongoid/simple_new_dsl_mongoid.rb | 2 +- spec/unit/localizer_spec.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/models/mongoid/no_scope_mongoid.rb b/spec/models/mongoid/no_scope_mongoid.rb index bf8c495..b022f6f 100644 --- a/spec/models/mongoid/no_scope_mongoid.rb +++ b/spec/models/mongoid/no_scope_mongoid.rb @@ -2,7 +2,7 @@ class NoScopeMongoid include Mongoid::Document include AASM - field :status, type: String + field :status, :type => String aasm :create_scopes => false, :column => :status do state :ignored_scope diff --git a/spec/models/mongoid/simple_mongoid.rb b/spec/models/mongoid/simple_mongoid.rb index 9c16435..dc8c557 100644 --- a/spec/models/mongoid/simple_mongoid.rb +++ b/spec/models/mongoid/simple_mongoid.rb @@ -2,7 +2,7 @@ class SimpleMongoid include Mongoid::Document include AASM - field :status, type: String + field :status, :type => String aasm column: :status do state :unknown_scope diff --git a/spec/models/mongoid/simple_new_dsl_mongoid.rb b/spec/models/mongoid/simple_new_dsl_mongoid.rb index e0406c0..93ec5a5 100644 --- a/spec/models/mongoid/simple_new_dsl_mongoid.rb +++ b/spec/models/mongoid/simple_new_dsl_mongoid.rb @@ -2,7 +2,7 @@ class SimpleNewDslMongoid include Mongoid::Document include AASM - field :status, type: String + field :status, :type => String aasm :column => :status aasm do diff --git a/spec/unit/localizer_spec.rb b/spec/unit/localizer_spec.rb index 95dc4f5..a1a4f71 100644 --- a/spec/unit/localizer_spec.rb +++ b/spec/unit/localizer_spec.rb @@ -11,7 +11,7 @@ class LocalizerTestModel < ActiveRecord::Base attr_accessor :aasm_state aasm do - state :opened, initial: true + state :opened, :initial => true state :closed event :close event :open