Displaying 20 results from an estimated 20000 matches similar to: "Capybara and a post request"
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
2012 Jun 14
1
Cucumber/RSpec ::: Capybara? Webrat What am I using??
Hey everybody
I''m currently reading through the Pragmatic Programmers RSpec book, and
I really enjoy it.
But I’m facing some problems because of the fact that the book is
already some years old, I guess. I have installed rvm and use Ruby
1.9.3, and I didn’t really get some Rails code examples to work
properly, so I tried it with a 1.8.7 installation, but there I had some
other problems
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
2012 Nov 14
8
right click or Context Menu in ruby without javascript
Hi,
This query is a replica of the link
http://railsforum.com/viewtopic.php?id=51231.
As I was unable to get any replies from the rails forum, I am posting
the same here.
I have developed an app using Rails 3. I have a table made to look
like a calendar. I wanted to know if there were any methods or gems to
acheive right click(context menu) action on the dates WITHOUT
javascripts or
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:
describe "path/to/view.html.erb" do
it "should pass"
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>
(NoMethodError)*
Is there
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 reflected in that object''s markup.
Here is
2011 Apr 04
0
issue installing gem Capybara on Debian5 w ruby 1.9.2 ( Rails 3.0.5) => installing native extension
On this server I already installed it in the gemsets for Ruby 1.8.7
and Rails 2.3.11 without any problem ...
but trying (many times .. ) to 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 :
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 getting the error:
cannot select option, no select box with id,
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
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",
2012 Oct 27
7
Photo Paperclip::CommandNotFoundError
Hi all,
I am using paperclip plugin. when i am trying to upload photo i am
getting this error " Photo Paperclip::CommandNotFoundError "
and i am getting this error on my server production mode. if i run on
development mode on my server i can able to upload the pic. why this is
happening i have no idea.
can any help me out.
Cheers,
Kp
--
You received this message because
2012 Sep 20
6
Good books about the internals of Rails 3
Hi, I''m a new RoR and Ruby developer and I''m searching for some good
resources (books or website) that go a little further than books like
the railstutorial (which is excellent btw).
But after reading this, I feel like as long as I''m working with
scaffolding and simple gems, it''s ok, and a lot can be accomplished with
this but I would like to have a deeper
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... Maybe it''s better to group
by user story... What do
2013 May 02
1
trouble-with-capybara-and-rspec-on-a-new-model-spec
I have searched a lot for a solution, but I could not find it! I am trying
to make a rails application after watching Michael Hartl''s tutorial and
when i fill data manually and submit it nothing happens and nothing records
in the Mailers table and I am facing the following error:
Failures:
1) Mailer pages mail us with valid information should send a mail
Failure/Error: expect
2012 Dec 25
3
ERROR : An error occurred while installing mysql2 (0.3.11), and Bundler cannot continue.
I am a php programmer, learning ruby on rails
I am using ubuntu 10.10. i am not so fine with linux.
i have installed ruby, gems etc.
I want to make app with using mysql.
I have used *$ rails new clogs_web_app -d mysql* to make app but
the process stops with this statement *Gem::Installer::ExtensionBuildError:
ERROR: Failed to build gem native extension.*
it give me error : *
An error occurred
2012 Nov 12
7
RSpec: controller POST create
Rails 3.1.3
rspec-rails (2.11.4)
rspec 2.11.1
I am new to rspec. I don''t quite understand tests for POST create part.
I have generated scaffold, and simultaneously it generated
controller_spec.rb as well.
it "assigns a newly created plan as @plan" do
post :create, {:plan => valid_attributes}, valid_session
assigns(:plan).should be_a(Plan)
2013 Jun 18
1
Getting rspec error: Net::SMTPServerBusy: Relay access denied
I''m trying to test registration emails (sent with devise), and I keep
getting the error:
Net::SMTPServerBusy: 454 4.7.1 <model_spec-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>: Relay access denied
I''m running Rails 3.2.11 with Capybara, and I have (temporarily) chopped my
spec_helper.rb and test.rb files down to the bare minimum, still getting
the error above.
2012 Oct 10
8
link_to with additional data
Hi,
rails 3.2.8
I must be missing something basic (and it''s been driving me mad) because I
am trying to send one additional data attribute to my controller from a
link, but I can''t seem to get it into the params received by the controller.
I have looked around and found answers, but none seem to affect my links.
I''ve set up a dummy app with a home page and a single
2013 May 12
10
Capybara with redirect
I am having an issue where a feature works fine but the corresponding
test fails, and I can''t understand why.
I created a mock application to demonstrate the problem.
https://github.com/assafshomer/clear_button
All it does is show an input form with a clear button. The clearing
happens by redirecting back to the same form. It does clear it when you
run the app, but the test for it