-
-
Save damncabbage/20b878b09b5b0c5459f7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rspec' | |
require 'rspec/autorun' | |
module Foo | |
end | |
RSpec.describe Foo do | |
it "tests" do | |
expect(subject.class).to eq(Foo) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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