search for: rspeconrail

Displaying 5 results from an estimated 5 matches for "rspeconrail".

Did you mean: rspeconrails
2006 Dec 29
0
RSpecOnRails - setup or context_setup?
Hi! While working on a controller spec, I got into this situation: The controller uses in it''s initialize method some configuration options from a Configuration class (singleton). For testing these options need to be changed, so I started with: context "..." do controller_name "test" setup do Configuration.instance.option = "this should be used in the
2006 Nov 21
10
Rspec Brown Bag
...ny resistance/skepticism, and how to best address these concerns? I''m kindof nervous because there is some skepticism toward rspec and BDD. Mainly: - Test::Unit already does that, so why do we need rspec? - It''s not production ready. (Stack traces are too cluttered for RspecOnRails; although this opinion was based on version 0.6) - New people will be confused seeing rspec code (although this is solved by more education, usage, encapsulation, etc.) - BDD is TDD using "should" instead of "assert" There are also a number of people who do see benefi...
2007 Jan 05
6
RSpec 0.7.5 with Rails and rcov
I seem to be missing something because I am at a loss on how to get rcov, RSpec, and Rails working together. Would someone mind dropping some hints?
2007 Feb 17
4
RSpec usage
Hey all, Trying to get feel for RSpec usage so I''m taking a straw poll... What''s the largest project you''ve used RSpec on in terms of app LOC app and spec LOC? Also, how long have you been using RSpec in "production" code? -Bryan
2007 May 28
1
Rails matcher render_template is wrong when using GetText, looking for flexible solution
...e first existing path to the original render_file method : return render_file_without_locale(localized_path, use_full_path, local_assigns) if file_exists? localized_path This line always evaluates to true in RSpec context, but to false in the application. After a lot of digging I found out that RspecOnRails overrides file_exists? with a stub when integrate_views is not set (lib/spec/rails/dsl/behaviour/controller.rb:57): @template.stub!(:file_exists?).and_return(true) Now I''m not sure what would be the best solution. Since I know about this, I could simply add the same extension as GetT...