Skip to content

Commit

Permalink
Fix page_menu spec
Browse files Browse the repository at this point in the history
fix error ActiveModel::MissingAttributeError: can't write unknown attribute
  • Loading branch information
bricesanchez committed Mar 28, 2018
1 parent 258c1b1 commit 682232f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/spec/models/refinery/page_menu_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module Refinery

context "with #menu_title" do
before do
page[:menu_title] = "Menu Title"
page.menu_title = "Menu Title"
end

it_should_behave_like "Refinery menu item hash"
Expand All @@ -54,7 +54,7 @@ module Refinery

context "with #title" do
before do
page[:title] = "Title"
page.title = "Title"
end

it_should_behave_like "Refinery menu item hash"
Expand Down

0 comments on commit 682232f

Please sign in to comment.