Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixing ordering dependent specs

  • Loading branch information...
commit 19453d77913e5cc92dd836294bcb6e7ceb4d2a7f 1 parent 3f25fc7
@bbenezech bbenezech authored
View
1  lib/rails_admin/config.rb
@@ -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
View
4 spec/lib/rails_admin_spec.rb
@@ -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
View
4 spec/requests/config/edit/rails_admin_config_edit_spec.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.