Re: [rspec-users] Mocks and CL Programs

2011-04-05 Thread James Martin
On Mon, Apr 4, 2011 at 1:24 AM, andyl wrote: > I am using rspec/aruba to do integration tests of a command-line program > i'm writing. > > ... > > Alternatively, I could write a local web service that delivers fake > results. > > I like the idea of this for end-to-end tests, depending on the com

Re: [rspec-users] fields_for view spec

2011-04-05 Thread Matt S.
Matt S. wrote in post #991032: >> In similar view specs, I've stubbed #owner_attributes= on the 'assets' >> mock. I think Rails' nested form/assignment implementation does a >> check on the existence of this method to make sure that the Asset >> model does indeed accept nested assignment for that a

Re: [rspec-users] no output from rspec

2011-04-05 Thread Peter Boling
I had a similar issue recently. If you are using bundler and only specify rspec-rails to load in the :test environment, i.e. not in the :development environment, when you run rake rspec you will get no output. You must specify rspec-rails in :test AND :development (it doesn' t load the whole

Re: [rspec-users] fields_for view spec

2011-04-05 Thread Matt S.
Chris Mear wrote in post #990804: > On 4 April 2011 02:00, Matt S. wrote: >> let(:owner) { mock_model("Owner").as_new_record.as_null_object } >> assert_select "input#asset_name", :name => "asset[name]" # passes >> <%= f.label :name %> >> >> <%= f.submit %> >> >> <% end %> > > In similar view

[rspec-users] Mocks and CL Programs

2011-04-05 Thread andyl
I am using rspec/aruba to do integration tests of a command-line program i'm writing. I'd like to use something like FakeWeb to stub the network calls in the command-line program. But with aruba, the program under test runs in a separate process, and FakeWeb won't work. I'm thinking of adding

Re: [rspec-users] spec_helper aware of full test suite being run? After hook to run code after running all specs?

2011-04-05 Thread Scarmt Yelon
The other day my child wanted to make a project. As a Dad it was my duty to help him out in his project. But when he told me the topic, I was so moved by it, http://www.samrx.com/buy-kamagra-oral-jelly.aspx because your name popped in my mind immediately and within no time the project could be com