Right now I am doing my testing by creating a controller for passing in the name of the file, parsing the file in the开发者_如何学Python model and adding the necessary information added as a row in my
I installed simplecov gem and added require \'开发者_StackOverflowsimplecov\' SimpleCov.start to the spec_helper.rb file, now if i include spec_helper.rb in my some_file_spec.rb file and try to run
I have few integration tests in Capybara+RSpec for a Rails project. Today I encountered Steak gem that meant to be pure Ruby alternative to Cucumber. Though at first glance I don\'t see any value in e
I am using rails 2.3.5 with cucumber (0.10.0) cucumber-rails (0.3.2) capybara (0.4.1.2) rspec (2.5.0) rspec-core (2.5.1)
Is开发者_高级运维 it somehow possible to test warnings i Ruby using RSpec? Like this: class MyClass
I\'m a big noob when it comes to testing or test-driven development, so I\'m really struggling with testing my code. The biggest reason why is situations like this...
I\'m creating an application that will allow the user to take an exam. The exam object has_many questions and I want the user to take the exam in two parts. In order to implement this workflow, I\'ve
I have a datatime attribute taken_at in one of my models that will record when a test was taken. I\'m trying to validate that this field is always present开发者_高级运维 in my model with the following
How can i add a translation test to my spe开发者_开发技巧cs ? Something like : flash[:error].should == I18n.translate \'error.discovered\'
I was reading 开发者_C百科the Rails Tutorial and following along like a good drone installing everything the way it said and doing everything it told me. Then I realized I didn\'t like the book any mo