I meant to say simply use Rack::Test to make the requests while testing,
Capybara isn't useful for interacting with an API directly.
On 8 September 2013 23:43, Tamara Temple wrote:
>
> On Sep 8, 2013, at 12:41 AM, Emil S wrote:
>
> > Andre, what you need is Rack::Test, not capybara.
>
> Not su
On Sep 8, 2013, at 12:41 AM, Emil S wrote:
> Andre, what you need is Rack::Test, not capybara.
Not sure what you mean here. Capy uses Rack::Test by default:
https://github.com/jnicklas/capybara#selecting-the-driver
--
You received this message because you are subscribed to the Google Groups
Rake means 'Ruby make', generally it is used to run the database migration.
It is used for the same kind of tasks that 'make' and 'ant' are used for in
other languages like C and Java respectively. When Rake is given a task to
do, like running migrations, it analyzes the application and decides
Hello,
I am trying to insert elements into an array like this...
@mem = []@tran = Transport.find_all_by_month_and_vehicle(date,vehicle)tran.each
do |t|
@mem << [Student.find_by_id(t.mem_id), t.transport_date, vehicle.no] if
t.mem_type=="Student"
@mem << [Employee.find_by_id(t.mem_id), t.tra
Thanks everyone for your help,
I have found the answer here
http://stackoverflow.com/questions/18337609/rspec-request-test-merges-hashes-in-array-in-post-json-params
It seems that the request parameters I was sending was not the correct ones.
this worked
it "should return an error if there is n
Did you try reading the Rspec docs? Also, this would help you:
http://edgeguides.rubyonrails.org/testing.html#what-to-include-in-your-functional-tests
--
Dheeraj Kumar
On Sunday 8 September 2013 at 4:44 PM, André Orvalho wrote:
> Hi Emil,
>
> I have also found that link and that only shows
Hi Emil,
I have also found that link and that only shows GET requests. Its a very
good example for those. But I need to make a pull request where I need to
send data in JSON just like the example you posted here in cucumber, and I
dont seem to find the way to do this in Rspec. at least I cant make
7 matches
Mail list logo