Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: crystal-lang/crystal
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: dc2b8f049191
Choose a base ref
...
head repository: crystal-lang/crystal
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 382529f31675
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Apr 28, 2018

  1. Copy the full SHA
    7df0271 View commit details

Commits on Apr 29, 2018

  1. Merge pull request #6029 from asterite/bug/5729-spec-be_a-regression

    Let spec be_a be a macro again
    asterite authored Apr 29, 2018
    Copy the full SHA
    382529f View commit details
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/spec/expectations.cr
4 changes: 2 additions & 2 deletions src/spec/expectations.cr
Original file line number Diff line number Diff line change
@@ -267,8 +267,8 @@ module Spec
end

# Creates an `Expectation` that passes if actual is of type *type* (`is_a?`).
def be_a(type : T.class) forall T
Spec::BeAExpectation(T).new
macro be_a(type)
Spec::BeAExpectation({{type}}).new
end

# Runs the block and passes if it raises an exception of type *klass* and the error message matches.