Skip to content

Commit

Permalink
for lulz
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed May 30, 2013
1 parent dc32c7b commit ff9ec78
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions spec/rspec/matchers/be_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,13 @@
end

it 'fails when :predicate? is private' do
klass = Class.new do
privately_happy = Class.new do
private
def happy?
false
true
end
end
expect {
expect(klass.new).to be_happy
}.to raise_error
expect { expect(privately_happy.new).to be_happy }.to raise_error
end

it "fails on error other than NameError" do
Expand Down

0 comments on commit ff9ec78

Please sign in to comment.