Skip to content

Commit

Permalink
Instance methods should be prefixed with #.
Browse files Browse the repository at this point in the history
  • Loading branch information
ugisozols committed May 28, 2012
1 parent 7f0ce02 commit 92a162f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pages/spec/models/refinery/page_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ def turn_on_marketable_urls
end
end

describe ".in_menu?" do
describe "#in_menu?" do
context "when live? and show_in_menu? returns true" do
it "returns true" do
page.stub(:live?).and_return(true)
Expand All @@ -465,7 +465,7 @@ def turn_on_marketable_urls
end
end

describe ".not_in_menu?" do
describe "#not_in_menu?" do
context "when in_menu? returns true" do
it "returns false" do
page.stub(:in_menu?).and_return(true)
Expand Down Expand Up @@ -535,7 +535,7 @@ def turn_on_marketable_urls
end
end

describe ".deletable?" do
describe "#deletable?" do
let(:deletable_page) do
page.deletable = true
page.link_url = ""
Expand Down Expand Up @@ -568,7 +568,7 @@ def turn_on_marketable_urls
end
end

describe ".destroy" do
describe "#destroy" do
before do
page.deletable = false
page.link_url = "link_url"
Expand Down

0 comments on commit 92a162f

Please sign in to comment.