form.erb <%= form_for @search do |f| %> <%= f.text_field :name %> <%= f.submit \'submit\' %>
I have a method that does this: Given a array of tags, it tries to fetch the Tag by its name from the db if it exists, otherwise it creates a new Tag.It then returns a collection of all the tag objec
The database is not being cleaned after each integration test. The value stays in the database. Is there a开发者_如何学Pythonn option I should have to make this happen?
This is probably pretty basic, but I can\'t seem to figure it out. I have Thinking Sphinx set up and running, but when I go to run my rspec tests, I get an undefined method error:
Just starting out here, I have a Article.rb model that stores articles. So it has the article_body, title, etc. as properties.
I\'m trying to test features of my Rails 3 app for which a user should be signed in. I use authlogic_rpx for authenticating users through Facebook and Twitter, but I don\'t want to test that process.
I\'m facing some problems when trying to assert that a method in a Mongoid::Document class is invoked by my controller code:
I have a problem when running all of my specs. ActiveRecord::AssociationTypeMismatch: Affiliate(#2154746360) expected, got Affiliate(#2199508660)
I am new to RoR and Rspec. I am trying to write Rspec tests for a home controller with tests for login and logout etc. I want to be able to login/logout a user using methods from the spec_helper.rb
How would you write a new.html.erb_spec.rb vie开发者_如何转开发w spec for this relationship. I am stumped.