On Oct 19, 2010, at 9:15 PM, oren wrote:
> I try to test sinatra app using rspec 2.0.0 and rack-test 0.5.6
>
> it "redirect non-authenticated user to logout page" do
>get '/'
>last_response.should be_redirect_to('/login)
> end
>
> and I get:
> undefined method `redirect_to?' for #
Tak
I'm sure something is borked in my app, but I can't seem to track it
down. A few commits back, my app was fully passing my spec suite. It
was on Rails 3.0.0 and Rspec 2.0.0.beta.20. I've now upgraded to
rails 3.0.1 and rspec 2.0.1 Now, I'm getting tons, and I mean tons of
failures that say thin
I try to test sinatra app using rspec 2.0.0 and rack-test 0.5.6
it "redirect non-authenticated user to logout page" do
get '/'
last_response.should be_redirect_to('/login)
end
and I get:
undefined method `redirect_to?' for #
where can I find reference/guide for methods I can use in
On Oct 19, 2010, at 4:11 PM, Matthew Van Horn wrote:
> I also ran into this today. Not sure where the "contain" matcher is, looked
> in rspec-rails and rspec-expectations, but came up empty.
> (Rails 3.0.0 / Rspec 2.0.0)
Webrat and Capybara each have a contain() matcher.
Trick is that Capybara
I also ran into this today. Not sure where the "contain" matcher is,
looked in rspec-rails and rspec-expectations, but came up empty.
(Rails 3.0.0 / Rspec 2.0.0)
-- matt
On Oct 18, 2010, at 5:53 PM, Stephen Veit wrote:
On Oct 18, 3:41 pm, David Chelimsky wrote:
On Oct 18, 2010, at 3:27 PM,
Trying to setup environment on xandros linux.
running ruby 1.9
gem 1.3.7
sudo gem install rspec
but when I issue rspec—help
I receive the following
/usr/lib/ruby/gems/1.9/gems/rspec-core-2.0.0/lib/rspec/core/ruby_project.rb:31:in
`ascend_until’: undefined method `Pathname’ for
RSpec::Core::RubyPr
On Oct 19, 2010, at 2:04 PM, Pat Maddox wrote:
> On Oct 19, 2010, at 12:56 AM, Oscar Del Ben wrote:
>
>> I'm having some troubles understanding how to test a couple of things.
>> Usually, if I'm having trouble testing something, it means that my design
>> could probably be improved or changed,
On Oct 19, 2010, at 12:56 AM, Oscar Del Ben wrote:
> I'm having some troubles understanding how to test a couple of things.
> Usually, if I'm having trouble testing something, it means that my design
> could probably be improved or changed, but in these cases I think I'm doing
> the right thing
David: you're right, it's not very rspecish :) There are two changes I
made that I wonder if we could see in core are:
1) printing out the path and method in specdoc output
2) setting default scope options per context (not quite working in my
example yet)
Thoughts?
Wincent: I like what you've co
On Oct 19, 2010, at 2:05 AM, Wincent Colaiuta wrote:
> El 18/10/2010, a las 20:20, Joe Fiorini escribió:
>
>> I started testing routes for the first time in Rails 3 this weekend
>> during Rails Rumble. I was so exhausted that I found writing route
>> specs a very painful task. I came up with my
Set an expectation that do_something should be called once. Then create a
new Foo.
With the method chain set an expectation that your chained method should be
called, then call the original method. You should be able to check that the
original method is passed as a param.
Further information in R
On Oct 19, 3:56 am, Oscar Del Ben wrote:
> I'm having some troubles understanding how to test a couple of things.
> Usually, if I'm having trouble testing something, it means that my design
> could probably be improved or changed, but in these cases I think I'm doing
> the right thing.
>
> Here'
El 18/10/2010, a las 20:20, Joe Fiorini escribió:
> I started testing routes for the first time in Rails 3 this weekend
> during Rails Rumble. I was so exhausted that I found writing route
> specs a very painful task. I came up with my own routing DSL and I'd
> love to see it get included in RSpec
I'm having some troubles understanding how to test a couple of things.
Usually, if I'm having trouble testing something, it means that my design
could probably be improved or changed, but in these cases I think I'm doing
the right thing.
Here's the first scenario:
class Foo
def initialize
d
14 matches
Mail list logo