In a rails app, if I use a different request format for mobiles. e.g. render *.mob开发者_如何学Goile.erb. What are the best practices to write tests for this? I use RSpec and can\'t find information o
I am using Rspec 2.0.I am not understanding how the scope works h开发者_JAVA百科ere... Somehow you can read the variable in any block but I cannot update it? why is that?
I am using Devise for authentication obviously 开发者_StackOverflow社区and what I am trying to do is test that a method is invoked on the user object.So my spec looks like this:
I\'m having some trouble setting up capybara (0.4.1.2) in a rails 2.3.8 app with Rspec 1.3From the installation capybara instructions, I\'ve inserted the line:
I\'m writing tests for my controller. They are very simple, but this error has kept popping up. This is my controller
I\'m fairly new to Rspec so apologies if this is a really simple question: I want to check that there is some link on the page that has a link to a pdf.
My basic logic is to have an infinite loop running somewhere and test it as best as possible. The reason for having an infinite loop is not important (main loop for games, daemon-like logic...) and I\
I have 2 models, one which accepts attributes for the other and I\'m trying to find a clever way to use Factory girl to setup the data for both.
I\'m new to RSpec, and I can\'t find out how to test the following: In my application controller (in a Rails 3 app), I set the locale in a before filter, like so
[root@cg sinatra-blog]#rspec app_spec.rb F Failures: 1) b开发者_StackOverflow社区log should show index correctly