Skip to content

Commit

Permalink
Fix tests to work in Rails 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
YOSHIDA Hiroki committed Jun 22, 2015
1 parent d779dfb commit d34ca8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/spec/views/comable/admin/themes/index.slim_spec.rb
Expand Up @@ -3,7 +3,7 @@

let!(:themes) { create_list(:theme, 2) }

before { assign(:themes, Comable::Theme.all) }
before { assign(:themes, (Rails::VERSION::MAJOR == 3) ? Comable::Theme.scoped : Comable::Theme.all) }

it 'renders a list of themes' do
render
Expand Down

0 comments on commit d34ca8b

Please sign in to comment.