Permalink
Browse files

fixing ordering dependent specs

  • Loading branch information...
1 parent 3f25fc7 commit 19453d77913e5cc92dd836294bcb6e7ceb4d2a7f @bbenezech bbenezech committed Jan 16, 2012
@@ -259,6 +259,7 @@ def reset
@default_hidden_fields[:show] = [:id, :created_at, :created_on, :deleted_at, :updated_at, :updated_on, :deleted_on]
@default_items_per_page = 20
@default_search_operator = 'default'
+ @attr_accessible_role = nil
@excluded_models = []
@included_models = []
@total_columns_width = 697
@@ -15,6 +15,10 @@
end
describe ".add_extension" do
+ before do
+ RailsAdmin::EXTENSIONS = []
+ end
+
it "registers the extension with RailsAdmin" do
RailsAdmin.add_extension(:example, ExampleModule)
RailsAdmin::EXTENSIONS.select { |name| name == :example }.length.should == 1
@@ -508,6 +508,10 @@ class Team
@time = ::Time.now.getutc
end
+ after(:each) do
+ Time.zone = 'UTC'
+ end
+
describe "a datetime field" do
it "should default to %B %d, %Y %H:%M" do

0 comments on commit 19453d7

Please sign in to comment.