I\'m learning RSpec 2 with Rails 3 and while it\'s been going along quite nicely so far, I\'m having a problem testing the helper link_to_unless_current in a view. What I\'ve been trying to do is use
rails 3 rspec-rails 2 In controller: def index@u开发者_JAVA技巧sers = User.paginate :page => params[:page],:per_pae => 5
I need to test two things: that certain old paths are correctly redirected to certain new paths that the redirect is a 301, not a 302.
trying to learn ruby on rails at the moment and currently learning about testing. The tutorial I\'m following uses rspec, so I ran the commands:
Just to be up front, although the title appears to be similar to the thread RSpec vs Cucumber (RSpec stories), however my question is fundamentally different.
when I run rspec spec/models result is OK. But when I use spork, every test where shoulda macros (like it { should validate_presence_of(:title) } is used FAILS with error like: undefined method \'val
I\'m running rails 3.0, rspec 2.0 and factory_girl. Here is the simplified scenario I\'m working with: a user can subscribe to only one plan at a time
I\'m trying to speed up \"rspecing\" in a rails 2.3.8 app with spork. When I run spork in the root of the project I get:
Given a couple of cities in the DB: City.first.attributes => {:id => 1, :name => \'nyc\'} City.last.attribute开发者_运维问答s =>{:id => 2, :name => \'boston\'}
I was all setup with Rspec and Autotest before I updated to开发者_运维百科 Rails 3. When running rspec spec/ I\'m getting: