Skip to content

Instantly share code, notes, and snippets.

@damncabbage
Forked from radar/foo.rb
Last active August 29, 2015 14:19
Show Gist options
  • Save damncabbage/20b878b09b5b0c5459f7 to your computer and use it in GitHub Desktop.
Save damncabbage/20b878b09b5b0c5459f7 to your computer and use it in GitHub Desktop.
require 'rspec'
require 'rspec/autorun'
module Foo
end
RSpec.describe Foo do
it "tests" do
expect(subject.class).to eq(Foo)
end
end
Foo
tests (FAILED - 1)
Failures:
1) Foo tests
Failure/Error: expect(subject.class).to eq(Foo)
expected: Foo
got: Module
(compared using ==)
Diff:
@@ -1,2 +1,2 @@
-Foo
+Module
# ./foo.rb:9:in `block (2 levels) in <top (required)>'
Finished in 0.00131 seconds
1 example, 1 failure
Failed examples:
rspec ./foo.rb:8 # Foo tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment