Hi All:
I am working on a test, and I need to detect if the test failed on the
after(:each) method, just to call a WebService.
Thanks!
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Rails 2.3.8
GEMFILE
group :development do
gem "rspec","1.3.0"
gem "rspec-rails", "1.3.2"
gem "guard-rspec" #https://github.com/guard/guard-rspec
end
SPEC_HELPER.RB
# This file is copied to ~/spec when you run 'ruby script/generate
rspec'
# from the project root directory.
ENV["RA
My app is builded with rails 2.3.12, rspec-rails 1.3.2, webrat 0.7.3.
My spec_helper.rb
ENV["RAILS_ENV"] ||= 'test'
require
File.expand_path(File.join(File.dirname(__FILE__),'..','config','environment'))
require 'spec/autorun'
require 'spec/rails'
require 'webrat'
Dir[File.expand_path(File.join(
I have a bunch of fixtures designed to populate the database for my Cucumber
integration tests.
But at this stage I want my database to be empty when using Rspec.
So, I moved the fixtures from `/spec/fixtures` to
`features/support/fixtures`, and updated `features/support/env.rb` to read:
F
As I understand it, RSpec runs in two passes. The first pass reads
your code and invokes factory methods to generate instances of example-
group and example subclasses. The second pass then invokes these
generated instance to run your test.
RSpec filters (via RSpec.configure) are set and operate
Im trying to integrate webrat in a rails 2.3.12:
I get this OUTPUT:
1)
NoMethodError in 'Campaign in first step testing request'
undefined method `visit' for
#
/home/matias/livechains/branches/test/livechains/spec/models/
campaign_spec.rb:16:
Finished in 6.518574 seconds
2 examples, 1 failure
Hey folks. In my controller specs, when I stub #render_to_string, #render is
also stubbed out. Thus, if a controller action calls #render, the stubbed
#render returns what #render_to_string returns, which causes specs to fail.
http://pastie.org/2339809
Am I doing something strange or wrong? If
On Aug 14, 2011, at 10:31 PM, John Hinnegan wrote:
>
> On Sun, Aug 14, 2011 at 8:15 PM, Justin Ko wrote:
>
>
> On Sun, Aug 14, 2011 at 3:48 PM, John Hinnegan
> wrote:
>
>
> I was trying to stub something "globally", across all tests today, and had
> some trouble.
>
> I tried
>
> RSpec.