remarkable-rb / remarkable

Simplifying tests!
http://www.nomedojogo.com/category/remarkable/
MIT License
120 stars 64 forks source link

ruby 1.9.2 and rails 2.8.7 #17

Open ghost opened 14 years ago

ghost commented 14 years ago

I just upgraded to ruby 1.9.2 and I'm having all kinds of issues with remarkable. I've tried everything. I finally solved them, but I do not think its the right solution. Here's whats been happening:

describe InvoiceItem do context "validations" do it { should validate_presence_of(:description) } end end

Gives me the following error: wrong number of arguments (1 for 0)

The fix:

it { InvoiceItem.new.should validate_presence_of(:description) }

Doing:

it { InvoiceItem.should validate_presence_of(:description) }

Gives me the following error: undefined method `description=' for #Class:0x00000102f324d0

Any idea whats going on here? In 1.9.1 it was all working fine. 1.9.2 I'm getting these strange errors.

Thanks for your help.

justinko commented 14 years ago

Hey Ben,

Looks like Remarkable kinda died after shoulda announced it will be transforming into RSpec matchers. You can see see the details here:

http://robots.thoughtbot.com/post/701863189/shoulda-rails3-and-beyond

Although I believe remarkable is a better matcher library, shoulda does work.

Hope that helps.