Generated description for `eq ["foo"]` is wrong #408

Closed
myronmarston opened this Issue Jan 5, 2014 · 2 comments

Comments

Projects
None yet
2 participants
Owner

myronmarston commented Jan 5, 2014

describe ["foo"] do
  it { is_expected.to eq ["foo"] }
end

Produces:

["foo"]
  should eq "foo"

But it should be:

["foo"]
  should eq ["foo"]
Contributor

ThijsWouters commented Jan 5, 2014

I created a fix for this issue: #409.
I noticed that the Be matcher also has the same issue. But there could be others.
Can you help me identifying which should change?

Contributor

ThijsWouters commented Jan 6, 2014

These are all the matchers which can take one argument, with their descriptions.
https://gist.github.com/ThijsWouters/8288990

JonRowe closed this in #409 Jan 9, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment