Displaying 20 results from an estimated 67 matches for "capybara".
2012 Aug 23
5
wat is diff between webrat and capybara?????
now i am using cucumber.........and i get two topic webrat and
capybara........wat is the diff between them???????which one is
good?????which one i use?????
Regards
Fahim Babar Patel
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TL...
2011 Apr 26
1
new goodness, Capybara::RSpecMatchers in helper specs
This https://github.com/rspec/rspec-rails/commit/59793dcc349b64f4ebcf742606371001256c774d
is exciting news!! ("this adds capybara matchers to view and helper
specs")
Now, if I just knew how to take advantage of it? Do I have to require
something else in spec_helper? I have already added included
gem ''rspec-rails'', ''~> 2.6.0.rc2''
gem ''capybara'', ''~>...
2012 Jul 22
1
RSpec/rails & Capybara: #within
I''m new with Capybara and after a good amount of google, I still can''t
figure out how the #within methods works!
I can use it only if I call visit before? There''s no way to use it on a
string, like the `page = Capybara.string(html_string)` trick?
When describe a view, I want something like that:
descr...
2012 Jun 14
1
Cucumber/RSpec ::: Capybara? Webrat What am I using??
...couldn’t solve.
So I re-did the code example myself (it’s the simulated_browser example)
on Ruby 1.9.3, and it’s working quite nice but I had some other strange
behavior now. In fact, I had an error message that the contain() was not
found. After some searching on Google (and having seen the term capybara
before somewhere in my error messages), somebody pointed out that when
using capybara, contain() would not exist, but have_content(). So I
tried it with have_content(), and it worked!
I’m a bit confused now – what exactly am I using? Capybara or Webrat?? I
thought I use Webrat, and Capybara is nev...
2010 Dec 16
12
Capybara + radio buttons
How do I select a radio button when both id and name are identical?:
<input type="radio" name="BILFPB.bilPremieUppgifterFI.under24"
tabindex="13" value="J24" checked="checked" id="forare">Ja
<input type="radio" name="BILFPB.bilPremieUppgifterFI.under24"
tabindex="14" value="N24"
2011 Oct 08
1
Rails view spec expectations/matchers
...elishapp.com/rspec/rspec-rails/docs/view-specs/view-spec) it
seems like rendered is just a string and you can''t really do any
assert_select type stuff out of the box.
After Googling around, it seems that the RSpec authors decided that if you
want that functionality, you should just use Capybara or some such... is
that correct?
If that is the case, can you please look at how I''m writing my view specs
and let me know if there is a better/cleaner way?
Here goes...
*spec/spec_helper.rb*
RSpec.configure do |config|
config.include RSpec::ViewHelper, :type => :view
end
*spec/...
2012 Feb 13
11
stale records with integration testing?
Hi,
I was writing an integration test for my user signup form (with
capybara), and found that my test was failing due to a validation error:
"email is already taken". I''m a bit confused because I thought when I
run "rspec spec/some_spec.rb", the test database would be wiped clear?
Is that not the case?
Patrick J. Collins
http://collinatorstud...
2012 Jun 14
3
response.should have_content("1 movie") does not seem to work for me
...::World:0x007fb114028010> (NoMethodError)
After some searching on Google I got the hint to use should_contain("1
movie"), and this method seems to be available, but it doesn''t seem to
work. Anyways, I''m a bit confused now, because should_contain() was
claimed to be a Capybara thing, and not a Webrat thing, but I never read
something about Capybara in the book, only about Webrat. So what am I
using now, and why?? Is it because the book is a bit old already, and
nowadays Rails uses Capybara by default? Because when removing
gem "webrat"
from my Gemfile, Cucumb...
2012 Jan 17
2
does jruby rspec have to use selenium?
With jruby and rspec requests, do you have to use selenium webdriver?
I''m confused, with ruby and rubyonrails using cucumber with capybara, I
didn''t have to set the default driver, what was it using and can i use that
with jruby? Things just worked w/o me even having to know about it :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/2...
2010 Nov 26
0
Cucumber + Capybara + tiny_mce Problem
Hello
I want to test the the tiny_mce using cucumber and capybara and I got a
solution in the following thred "
http://groups.google.com/group/ruby-capybara/browse_thread/thread/711d08ddceb9276?pli=1"
but somehow I am getting the following error
*private method `bridge'' called for
#<Selenium::WebDriver::Driver:0x..fb55cd4f0 browser=:firefox...
2011 Apr 04
0
issue installing gem Capybara on Debian5 w ruby 1.9.2 ( Rails 3.0.5) => installing native extension
...install in Ruby 1.9.2 (Rails 3.0.5)
raises an error ... It''s not related to the gem itself as the gem
doesn(t build any native extension .. but to one dependency...
I don''t know where to start looking for ...
here is the log message :
rubyrails:~ (ruby-1.9.2@rails3)$ gem install capybara
Fetching: nokogiri-1.4.4.gem (100%)
Building native extensions. This could take a while...
Fetching: culerity-0.2.15.gem (100%)
Fetching: celerity-0.8.9.gem (100%)
Fetching: json_pure-1.5.1.gem (100%)
Fetching: rubyzip-0.9.4.gem (100%)
Fetching: ffi-1.0.7.gem (100%)
Building native extensions. Th...
2011 Nov 18
0
Capybara + Selenium + JS
Hi,
I''ve recently been working with Capybara 0.4.0 and the bundled Selenium driver in Rails 2.3.8 with Ruby 1.8.7 to do integration testing with javascript. The problem I have is that Capybara''s page object does not seem to be affected by the Javascript, even though I can see the changes happening in the browser, they are not reflect...
2012 Jul 19
0
Capybara and a post request
Hi there!
In my app I have an entry page that is called with an post-request from
another site. This post-request contains a parameter called key and is used
for an app authorisation of that other site.
How can I simulate such a behaviour in respect and capybara?
In the moment I have a controller and action that serves me a Form where I
fill in the key and click submit via capybara. But I think this is a little
bit hacky, also this form is not necessary for the app itself. I would like
to remove this overhead if possible.
TIA
Norbert
--
You received th...
2011 Jul 05
2
Using Capybara to select from a collection_select call (select tag)
I''m trying to use Capybara to test this. I have a step that goes
When I select "Price Chopper" from "Organization"
And the step definition is
When /^(?:|I )select "(.+)" from "(.+)"$/ do |value, field|
select(value, :from => field)
end
For some reason, I keep getti...
2010 Sep 20
2
For Your Own Info: Rails 2.3.2 is incompatible with Cucumber (0.8.5), Capybara (0.3.9) and Selenium-webdriver (0.0.17)
Railers,
I am running an application on Rails 2.3.2. For some reason within our
organization, we wish to remain on this version of Rails. For BDD/Testing,
we use Cucumber. So I installed Cucumber (0.8.5), Capybara (0.3.9) and
Selenium-webdriver (0.0.17). But when I run Cucumber on any feature, I get
an error saying *" wrong number of arguments (2 for 1) (ArgumentError)"*,
(Check here for more: http://pastie.org/1169557). In addition, Selenium
web-driver was initiating two web browser windows concur...
2012 Jun 08
0
Having difficulty testing redirects with Rspec and Capybara
Every time I try to test a redirect, I get this error: @request must be an
ActionDispatch::Request
Any idea why? I''m using Rspec-Rails 2.9.0, Capybara 1.1.2, and Rails 3.2.
Here''s my test:
describe "AdminAccountPages" do
subject { page }
let(:user) { FactoryGirl.create(:user) }
let(:account) { user.owned_accounts.create!(name: "ACME Corp", subdomain:
"acme") }
describe "Admin::Accounts#s...
2013 Jul 19
0
Best practices for capybara's features spec?
Hi,
I realy like to use capybara''s 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_spec.rb", etc...
2012 Apr 06
0
i can not get current_user while writing test case with Rspec and Capybara
0 down vote favorite
share [g+] share [fb] share [tw]
I have to write test case for my one feature listing page and that
feature index method has code like below
def index
@features = current_user.features
end
Now when i try to write test case for this then it throws error for
''undefined method features for nil class'' because it can not get the
current user
Now what i have
2011 Oct 18
8
rspec 1.3.2, Rails 2.3.14 - plugins not loading
...written. In my Gemfile, these Gems are
loaded:
group :test do
gem ''rspec-rails'', ''~> 1.3.4'', :require => ''spec/rails''
gem ''rspec'', ''~> 1.3.2'', :require => ''spec''
gem "capybara", "0.3.9"
gem "cucumber", "0.9.4"
gem "cucumber-rails", "0.3.2"
gem ''database_cleaner''
end
When I run the specs (bundle exec spec spec), I get error messages
because the plugins of the application aren''t loaded...
2012 May 18
2
How does Spork help in requests specs?
...is booting each time I run "rspec -X spec/requests".
Is that true? If so, is there any way I could instruct the web server to
keep alive after the specs run so that it would be faster on next run?
Are there any resources on how to have better performance on running
requests specs with Capybara and Webkit?
Having to wait about 7 seconds between consecutive runs is really a
blocker for me. If I can''t get it to run faster, I''ll give up on
requests specs and only have the controller''s tests and client-side code
specs without any integration tests...
But to be...