Hi,
I'm pretty new to rspec. I'm writing some spec for a Rails 3.0 app
with Devise (branch omniauth), rspec 2.0.1 and factory_girl.
When I run spec file by file (ex: rspec spec/models/
document_spec.rb) , it run sometimes withtout error and sometimes with
some errors (duplicate entry in DB). That
I am following the rails tutorial:
http://railstutorial.org/chapters/filling-in-the-layout#top
Basically the test is something like:
spec/requests/layout_links_spec.rb
require 'spec_helper'
describe "LayoutLinks" do
it "should have a Home page at '/'" do
get '/'
response.should have_s
On Oct 21, 2010, at 1:35 AM, a-iparikh wrote:
> I want test case in rspec for:
> @drugs = Drug.where('drug_category_id = ?', params[:id])
> has anybody solution for it?
Please use the rspec-users mailing list for usage questions (I CC'd rspec-devel
to make sure you'd get this).
You haven't prov
On Oct 19, 2010, at 4:49 AM, Jbiolaz wrote:
> Hi,
>
> I'm pretty new to rspec. I'm writing some spec for a Rails 3.0 app
> with Devise (branch omniauth), rspec 2.0.1 and factory_girl.
>
> When I run spec file by file (ex: rspec spec/models/
> document_spec.rb) , it run sometimes withtout error a
On Oct 20, 2010, at 6:27 PM, Daniel Palacio wrote:
> I am following the rails tutorial:
> http://railstutorial.org/chapters/filling-in-the-layout#top
>
> Basically the test is something like:
>
> spec/requests/layout_links_spec.rb
> require 'spec_helper'
>
> describe "LayoutLinks" do
>
> it
On Wed, Oct 20, 2010 at 11:19 PM, David Chelimsky wrote:
> On Oct 20, 2010, at 9:56 PM, oren wrote:
>
> > I am specing a sinatra app.
> >
> > it "should send non-valid user to /login" do
> > get '/'
> > last_response.headers['Location'].should == '/reports'
> > end
> >
> > this is working fine b
works! thanks so much for not only solving it but also mentioning rack-
test.
I see the get method here:
http://github.com/brynary/rack-test/blob/master/lib/rack/test.rb
but it's not clear how to use that (I guess it depends on your
experience), I wish there was a usage/sample section..
On Oct
Hi,
I'm trying to get tests running on a gem I forked on github. When I try to run
tests, it says "0 examples", despite lots of tests in the /spec directory. Here
is some pertinent information:
Code at: http://github.com/dissolved/yahoo_stock
RSpec version 2.0.1
Some examples:
01:05:43 [xenon
Hello,
In Rspec 1.x I I could create custom ExampleGroups that would have
behaviour similar to controller specs. How can I accomplish something
similar to this in Rspec 2? I would like to create an example group to
test my Cells instances ( http://github.com/apotonick/cells ).
Thanks!
___