Displaying 20 results from an estimated 20000 matches similar to: "Best practices for Rails API testing ?"
2010 Feb 20
1
Advanced use of to_xml and to_json
Hello,
I''m working on a Rails app which has a REST API. I manage two formats
JSON and XML.
Very often to simplify the use if the API, I''m making includes. But when
you add params to to_json and to_xml like :only, :except, it''s not only
applied on the root object but on all the objects included.
Do you know libs or methods to answer to these different problems:
* Tell
2009 Feb 13
2
[cucumber][v0.2alpha]Where could I find API docs for custom formatters?
Hi,
I''m working on update my local Cucumber to the latest version. But it seems
the old formatter APIs(step_failed, scenario_executed, etc.) don''t work any
more. Are there some documents or even Cucumber source code I can refer to?
Thanks in advance,
Liu
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2010 Jul 09
2
Email Testing with Cucumber and email-spec
Hello Friends!
I have been trying to test email using Cucumber and Email-Spec.
I have put this statement "require ''email_spec/cucumber''" in
support/env.rb file
and I am getting this error:
"Using the default profile...
uninitialized constant EmailSpec (NameError)"
I don''t know what I am doing wrong.
Please help!!!!
Thanks a lot!!!!
--
Posted via
2012 Nov 21
1
[JOBS] RoR Developer at SF Google-Backed Start Up
The Climate Corporation is a Google Ventures funded big data startup with a
mission to help people adapt to climate change. We make sense of huge
amounts of complicated data and run simulations <http://goo.gl/9Fv0J> to
determine the risk of adverse weather, which influences 25% of GDP.
We are looking for a Web Application Developer who are passionate about
innovation and share the value
2006 Dec 19
1
Is logic right?
OK. My basic asterisk install seems to be working. I can get caller
ID. My dialplan says:
[incoming]
; incoming calls from the FXO port are directed to this context from
zapata.conf
exten => s/9185415897,1,Set(CALLERID(name)=Michael Sullivan)
exten => s/9185415897,1,HANGUP(1)
exten => s,1,Set(CALLERID(name)=Someone Else)
This is for testing. It's supposed to check the caller ID
2013 Jul 02
2
PSON and JSON
HI,
i''m currently trying to connect a rails app using the "her" gem/library
(since active ressource is gone since rails 4) to Puppet''s REST API.
Now, "her" or activeressource both speak json, while Puppet speaks pson,
which should be nearly the same according to some posts here.
Communication already works but it seems that the response objects are not
2010 Jan 29
3
testing controllers using cucumber
Hello,
Is there any way to test controllers using cucumber.
I was doing it with rspec but since cucumber''s description is good how
can i proceed testing it with cucumber?
For e.g.
I have a scenario of user creation like
Feature: User Scenarios
Scenario: Successfull creation of user
Given a new user
When the user fill all the mandatory details
Then that user should get
2010 Dec 16
1
Ambiguous match error for Cucumber
Hi,
I am trying out the cucumber tutorial
http://www.ultrasaurus.com/sarahblog/2008/12/rails-2-day-3-behavior-driven-development/
My tasklist.feature file is like as follows
"
Feature: Tasks
In order to keep track of tasks
People should be able to
Create a list of tasks
Scenario: List Tasks
Given that I have created a task "task 1"
When I go to the tasks page
Then I should see
2008 Dec 03
3
Intermittent Cucumber exception
Hi
Anyone recognise this exception, and know what causes it to happen
occasionally?
Thanks
Ashley
Scenario: new story appears on
feed # features/descriptions/
story_notification.feature:12
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/cucumber/
broadcaster.rb:15:in `write'': Bad file descriptor (Errno::EBADF)
from
2012 Mar 13
7
ROC Analysis
Hi everybody,
I have a data set with a value and a status (positive or negative case) and
I want make a ROC Analysis. So, with ROCR Package, I have got the ROC curve
(True Positive Fraction [tpf] according 1-True Negative Fraction [1-tnf]).
http://r.789695.n4.nabble.com/file/n4469203/01.png
But, now I want a new graphic which show the sum of true positive fraction
and true negative fraction
2010 Feb 26
0
ruby script/cucumber -tags producing a gem error
When I do "ruby script/cucumber" the tests run no issues. When I do
the same thing but -tags tag_name I get a gem version error:
Where is it coming from and why??
Using the default profile...
RubyGem version error: rack(1.0.1 not = 1.1.0)
(Gem::LoadError)
F:/BACKUP/Backup/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:827:in
`report_activate_error''
2009 May 06
0
Cucumber, Webrat, RSpec and Mechanize for Non-Ruby Apps
The folks here have given me the task of figuring out if cucumber can
be used successfully to test some of our apps.
I have the latest versions of rails, mechanize, cucumber webrat and
rspec installed.
#/cuketest/features/google.feature
Feature: New PC
In order to get a sweet new PC
As a apple nerd
I want to find apple.com
Scenario: Get a sweet new computer
Given I visit
2009 Apr 27
2
uninitialized constant ActionController running Cucumber features in Aptana/RadRails IDE
I''m just starting on BDD. I installed the gems for webrats and
cucumber.
I also ran the following in the Ruby shell:
>rake gems:install RAILS_EN=test
>script/generate cucumber
These commands seemed to create the expected features and lib folders
in my project.
I''m using the eclipse framework with Aptana and RadRails as my IDE.
However, when I run:
>cucumber features
2009 Nov 18
1
undefined method `register' for Polyglot:Module
Getting this error. I have the treetop, polyglot, and rspec libraries
in the load_path (not installed as a gem). Any ideas? What defines
the register method?
/home/jvandyk/dev/web/wpn_rails/../../rcommon/lib/test/treetop/lib/treetop.rb:16:
undefined method `register'' for Polyglot:Module (NoMethodError)
from
2020 Feb 06
2
[cfe-dev] [Release-testers] [10.0.0 Release] Release Candidate 1 is here
On Thu, Feb 6, 2020 at 11:16 AM Yvan Roux <yvan.roux at linaro.org> wrote:
>
> Hi,
>
> here are the results for ARM targets:
>
> * 32-bit has the same issue reported in PR44767
>
> * same issue with quick-append.text for AArch64 check-all results are:
> Testing Time: 4520.30s
> ********************
> Failing Tests (1):
> LLVM ::
2009 Apr 15
0
Ambigous error while running cucumber features
Hello,
I was just trying out a cucumber-java example with selenium
integrated. My feature file has two scenarios and while executing the
command "cucumber features", It is executing the first scenario
succesfully, but for the second scenario I am getting the ambiguity
error (Cucumber::Ambiguous):
Scenario: Find what I''m looking for in yahoo #
2012 Feb 02
1
Missing files with rails generate cucumber:install
when ranning cucumber:install
and generate me this files
<code>
create config/cucumber.yml
create script/cucumber
chmod script/cucumber
create features/step_definitions
create features/support
create features/support/env.rb
exist lib/tasks
create lib/tasks/cucumber.rake
gsub config/database.yml
gsub config/database.yml
force config/database.yml
</code>
im searching for the
2009 Jun 05
0
[LLVMdev] Using LLVM JIT inside a Cocoa application
Hello,
I'm not an LLVM expert, but I think you can build a Cocoa/LLVM project
by using the LLVM's libraries and headers the same way you did with
any other third party library.
In fact, that's what the clang Xcode project does. It does not use any
makefile.
In short:
- Add the llvm/include folder in you header search path (in the
project's build settings).
To add
2010 Jan 19
0
rake cucumber features fails
Hey Guys,
Ubuntu 9.10
Env: Ruby 1.9.1
Rails 2.3.5
RSpec 1.3.1
Cucumber 0.6.1
Cucumber-rails 0.2.3
I''m starting with BDD with Cucumber/RSpec.
After creating a rails app, I did script/generate rspec and cucumber.
First problem, I can''t run cucumber by its own, as Ryan Bates does in his
screencast.
He freely runs "cucumber features -n"
2010 Apr 17
5
behavioural testing of puppet manifests with cucumber-puppet
Hi,
I''d like to announce a little tool I have written, called cucumber-
puppet. It supports writing behavioural tests for your puppet
manifest, using cucumber. This allows for BDD-style manifest
development and fearless refactorings.
http://blog.nistu.de/cucumber_puppet_0_0_3_released.html
Let me know what you think!
cheers,
Nikolay
--
You received this message because you are