shoulda
rake not running unit tests
I\'ve upgraded my app from using config.gem to a Gemfile with bundler and have noticed that my unit tests have now stopped running.It\'s a bit strange and I\'m not entirely sure where to start looking[详细]
2023-01-14 17:18 分类:问答Factory Girl with has many relationship (and a protected attribute)
I have this kind of relation: class Article < ActiveRecord::Base has_many :comments end class Comment < ActiveRecord::Base[详细]
2023-01-14 13:33 分类:问答RSpec vs. Shoulda?
I am new to the unit testing scene; I have only been using unit tests for about 2 months now. When I unit test in Ruby I currently follow the TDD style and use Test::Unit::TestCase. I have also read a[详细]
2023-01-14 08:18 分类:问答Get HTTP response Using Shoulda Ruby on Rails
I\'m migrating over to shoulda from rspec and I can\'t seem to get access to the http response. Can someone point out what I may be doing wrong?[详细]
2023-01-14 01:45 分类:问答Unit Testing with Shoulda
edit: this problem only happens sometimes This only appears to happen when I run the test from within TextMate (even when I specify the ruby to run it from by hand w开发者_如何学Pythonith a shebang).[详细]
2023-01-13 13:11 分类:问答Generating many almost identical ruby unit tests
I have a number of ruby files (a.rb, b.rb, c.rb) which define very similar classes. (They should test the same)[详细]
2023-01-13 11:02 分类:问答Failing an entire context with Shoulda Unit Tests
Using shoulda with unit/test I have a context which requires one test to pass before the others are even tried.[详细]
2023-01-13 10:34 分类:问答How can I test common Rails controller behavior while staying DRY?
I\'ve been writing RSpec tests for some Rails controllers and I\'ve discovered a strong impulse to ensure that the Authlogic authentication is working properly. I also feel like I should be verifying[详细]
2023-01-11 23:07 分类:问答@controller is nil when testing delete :destroy with Shoulda
The code below: context \"should destroy participation\" do setup do @p = Factory.create :participation delete :destroy, :id => @p.id.to_param[详细]
2023-01-08 19:37 分类:问答Translating Rspec tests to Shoulda
I have a pre-written Rails app for handling subscription based payments that is currently covered with an Rspec test suite. I\'m trying to merge it into a Rails app that is covered using the Shoulda t[详细]
2023-01-07 01:16 分类:问答
加载中,请稍侯......