Displaying 20 results from an estimated 4000 matches similar to: "RSpec book errata #57 - undefined method `include' : what to do?"
2009 Jan 08
3
any eta on the rspec book?
Subject says it all...
Thanks in advance,
T
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
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
2011 Oct 18
8
rspec 1.3.2, Rails 2.3.14 - plugins not loading
Hi there
I have a weird situation. I have inherited a project in Rails 1.2.3
that has been upgraded to Rails 2.3.14 (and is running). I have
installed Cucumber and Rspec to start to write features/tests for the
new code that needs to be written. In my Gemfile, these Gems are
loaded:
group :test do
gem ''rspec-rails'', ''~> 1.3.4'', :require =>
2010 Jul 01
1
using rSpec stub in Cucumber with rSpec2
Hello,
I have a Rails3beta4 project where I want to use rSpec stubs in a Cucumber
feature. Unfortunately it looks like requiring ''spec/stubs/cucumber'' in
env.rb does not work anymore: I get a "no such file to load --
spec/stubs/cucumber (LoadError)" error.
Is it possible to use rSpec stubs in Cucumber with rSpec2? If not, is there
any other viable alternative?
Thanks
2009 Jul 06
3
Rspec book issue (mastermind example)
Hey Everyone,
Just a simple question. I have read and re-read the examples and I''m
not getting the proper output. I''m on page 73/74 of the Rspec book
and it says I should have "4 steps passed". I think the problem is
within my /step_definition/mastermind.rb" file. It''s definitely not
beyond me to make a mistake, but I have checked and double checked my
2009 Apr 26
9
Problems running features with Textmate Cucumber bundle
I finally plunked down for the beta RSpec bundle and I''m working
through the initial example. Although I''m a fairly experienced RSpec
user, I''m stlll learning new tricks.
Anyway, I''m going though the mastermind example, and everything is
going well, except that I decided to also try out the Textmate bundle
for Cucumber. I decided to use Ben Mabey''s
2013 Jun 18
1
Rails 3 in action book: some files are not generated as written in the book
I''m reading "Rails 3 in action", chapter 3, p. 56.
It is said that the Cucumber skeleton generator
> rails generate cucumber:install
has to also generate the definition for the first step of the Scenario
"Given I am on the homepage" in the file
"features/step_definitions/web_steps.rb"
# file: features/step_definitions/web_steps.rb
Given /^(?:|I )am on
2008 Sep 29
3
rspec-ui overlap with cucumber?
Hi!
I''m using cucumber + selenium and I love it. However I''m looking to
add some methods (example: click_and_wait etc) to the lib. Therefore
looked around a bit and I got two questions:
Firstly about rspec-ui, I''m a little confused, does rspec-ui overlap
with its propose with webrat with cucumber or I''m missing a point?
Secondly, are there any plans to
2006 Nov 04
0
New version of the AWDwR beta book available
I''ve uploaded the B1.12 version of AWDwR.
The major changes include:
- Justin Gehtland''s new chapter on Web 2.0
- James Duncan Davisdon''s chapter on deployment (this is an
interesting one---JDD has strong opinions on how a Rails
application should be deployed, and the chapter mirrors this.
You''ll find it short and easy to follow).
- I changed the
2011 Aug 10
1
How to stop Rspec loading my Cucumber fixtures
I have a bunch of fixtures designed to populate the database for my Cucumber
integration tests.
But at this stage I want my database to be empty when using Rspec.
So, I moved the fixtures from `/spec/fixtures` to
`features/support/fixtures`, and updated `features/support/env.rb` to read:
Fixtures.reset_cache
fixtures_folder = File.join(RAILS_ROOT, ''features'',
2012 May 22
6
Beginning with BDD: Rspec or Cucumber? What is better documented?
Hey everybody
I''m sorry, I know that this question seems to arise every few moments,
but I
think in my case it''s a bit special (but doesn''t everybody?).
Well, I''m working with RoR on a private level since v1.0, and my
knowledge about both Ruby and Rails are on a basic level (but definitely
does exist), but I''m in no means near being an expert yet.
In
2006 Jan 02
2
Agile Web Development book - version 4.0 released
I don''t know if I missed this on the list, but the Agile Web Development
with Rails book is now at version 4.0, for those of us who bought the
PDF from the Prag Prog site.
Just a few typos and corrections from the looks of it, but can''t hurt to
get the latest.
You can reorder the book for download at:
http://books.pragprog.com/titles/rails/reorder
Cheers,
Tom
2011 Sep 13
12
Assertions for asynchronous behaviour
Hi all,
In GOOS[1] they use an assertion called assertEventually which samples the system for a success state until a certain timeout has elapsed. This allows you to synchronise the tests with asynchronous code.
Do we have an equivalent of that in the Ruby / RSpec world already? I know capybara has wait_until { } but that''s fairly rudimentary - the failure message isn''t very
2010 Jun 10
1
RSpec 2 equivalent for: assigns[:message].should == @message
describe MessagesController, "POST create" do
before(:each) do
@message = mock_model(Message, :save => nil)
Message.stub(:new).and_return(@message)
end
context "when the message fails to save" do
before(:each) do
@message.stub(:save).and_return(false)
end
it "assigns @message" do
post :create
assigns[:message].should
2009 Mar 08
2
rspec 1.1.99.12, Rails 2.3.1, undefined method `rspec_options=''
Hi David, all:
I recently upgraded to Rails 2.3.1RC2 (Ubuntu 8.10, ruby 1.8.7
(2008-08-11 patchlevel 72) [i486-linux]) and have been dilligently
following the instructions for upgrading rspec and rspec-rails
according to: http://wiki.github.com/dchelimsky/rspec/rails-with-rspec-gems.
and when I run ''rake gem'' fails with error:
rake aborted!
undefined method
2010 Dec 06
0
Rspec: `should': uninitialized constant RSpec::Expectations (NameError)
Hi all, tried posting this to rspec group but w/o success so hope someone on
this list might be able to help me out as am kind of stuck:
Can anyone tell me why I am getting this error trying to ''rake spec'':
''kernel.rb:27:in `should'': uninitialized constant RSpec::Expectations
(NameError)''.
Can''t seem to find a useful reference online to
2011 Apr 30
1
[rspec-rails] Is it bad form to use spec/requests/*_spec.rb for integration tests?
So I wanted to cook up a quick integration test for something, and I''m
using rspec. I personally just don''t like Cucumber - just a personal
preference, not a slam to the test framework at all - and wanted to
stick to just pure rspec. So I dumped a quick spec file in spec/
reqests and ran it, and of course everything works.
But is this considered bad form, or a less-than-good
2005 Nov 09
1
Enterprise Integration with Ruby - Beta book
I saw this mentioned on Dave Thomas''s blog
http://blogs.pragprog.com/cgi-bin/pragdave.cgi/Tech/Ruby/EIR.html
and don''t remember having seen it announced on this mailing list. This
new Beta Book is at
http://pragmaticprogrammer.com/titles/fr_eir/index.html
regards
Justin
2013 Oct 09
0
getting selenium working with jruby/sinatra/cucumber/webrat on windows
I am trying to run cucumber/webrat with Sinatra on Jruby 1.7.3 (1.9.3) on
Windows.
It seems to work ok, but when I try to add selenium to webrat. I get the
error shown below.
It seems like it thinks it is in a linux environment or something as the
error happens when it tries to start selenium server and there is a "&" at
the end of the argument chain. I took a look at capybara