Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ruby 1.9.2 and rails 2.8.7 #17

Open
ghost opened this issue Sep 4, 2010 · 1 comment
Open

ruby 1.9.2 and rails 2.8.7 #17

ghost opened this issue Sep 4, 2010 · 1 comment

Comments

@ghost
Copy link

ghost commented Sep 4, 2010

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
Copy link

justinko commented Sep 4, 2010

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant