Hi,
I realy like to use features spec but I have some questions about the
organisation :
1. How should I group the features specs?
--
For the moment, I try to group by controllers. For example, I can have a
file "users_spec.rb", "artists_sp
I forgot to add a title! An administrator can edit it, please? Thanks!
2013/7/16 Guirec Corbel
> Hi,
>
> I realy like to use features spec but I have some questions about the
> organisation :
>
> 1. How should I group
Hello,
I retried with the version 2.14. I have this spec :
require 'spec_helper'
describe OrdersController do
#...
describe "POST 'create'" do
subject(:do_post!) { post 'create', params }
context "when the order and the credit card and the payment are
valid" do
before do
So, you test your controllers in integration and you test the assignation
of the variables. The complete opposite of me.
How many controllers tests do you have and how many time it take?
2013/6/28 Patrick J. Collins
> > Is it good to tests only if the controller render a template or redirect
>
Hello World!
I have a question about controllers specs.For now, in my specs, I have
something like this :
UserCreator.should_receive(:new).with(params).and_return(user_creator)
*
*
So, I think some people can find than I test the wrong thing. I test the
implementation of the controller and not a
I have the same problem with many other. Thanks for your help.
Le 2013-06-11 17:02, Andy Lindeman a écrit :
On Mon, Jun 10, 2013 at 9:16 PM, Guirec Corbel wrote:
I am using rspec-rails 2.14.0.rc1
Can you give this a try with the latest 2.14 from rspec-core git? We
fixed an issue with `let
I am using rspec-rails 2.14.0.rc1
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Hi,
I a controller spec like this :
https://gist.github.com/GCorbel/5753042#file-painting_controller_spec_1-rb.
(at the top). When I try to run this spec I have this message :
Failure/Error: before { painting.stub(:valid?).and_return(true) }
NameError:
undefined local variable or method ` pai
If you want to learn fast, you can also do the codeschool's course here
: http://www.codeschool.com/courses/testing-with-rspec. Fun and fast.
Good luck.
If you want to share the code on github, contact me and I can comment
your project.
Le 2012-11-24 04:00, Andrew Premdas a écrit :
On 24
Please, can you have a look on my controller's specs? It will be very
useful for me. If you want, you can see other specs too.
Many thanks!
2012/11/18 Guirec Corbel
> You can show one of my project here : https://github.com/GCorbel/**
> comment-my-projects <https://github.com/G
You can show one of my project here :
https://github.com/GCorbel/comment-my-projects. In this project, I
should change the requests directory for features directory. May be I
also should follow this style :
https://github.com/jnicklas/capybara#using-capybara-with-rspec. It's on
my todo list. I
11 matches
Mail list logo