On Jun 6, 2010, at 7:42 PM, Kristian Mandrup wrote:
What are the options for creating specs for file operations, executing
commands in the CLI etc.?
If I build a generator or something which runs a lot of things in the
command line, how do I check the results of these operations, fx
On Jun 5, 2010, at 12:42 PM, Brian Cardarella wrote:
Subject pretty much asks the question
You _can_, but if you use ActiveRecord and start off with a clean DB, you can
use_transactional_examples (alias for use_transactional_fixtures, which
defaults to true in beta.10, but will default to
On Jun 5, 2010, at 3:12 PM, David Chelimsky wrote:
On Jun 5, 2010, at 3:08 PM, Kristian Mandrup wrote:
Using RSpec 2 beta.
$ rspec spec
* spec/spec.opts is deprecated.
* please use .rspec or ~/.rspec instead.
I tried renaming the file to .rspec but then it has no effect!
# spec
On Jun 5, 2010, at 3:34 PM, Brian Cardarella wrote:
On Jun 5, 2:12 pm, David Chelimsky dchelim...@gmail.com wrote:
On Jun 5, 2010, at 12:42 PM, Brian Cardarella wrote:
Subject pretty much asks the question
You _can_, but if you use ActiveRecord and start off with a clean DB, you
can
On Jun 5, 2010, at 3:53 PM, Kristian Mandrup wrote:
It seems there is no bin/autospec with RSpec 2. So I got it running
simply with $ autotest
Been looking at instructions here
http://wiki.github.com/dchelimsky/rspec/autotest-integration
And here
5, 3:42 pm, David Chelimsky dchelim...@gmail.com wrote:
On Jun 5, 2010, at 3:34 PM, Brian Cardarella wrote:
On Jun 5, 2:12 pm, David Chelimsky dchelim...@gmail.com wrote:
On Jun 5, 2010, at 12:42 PM, Brian Cardarella wrote:
Subject pretty much asks the question
You _can_, but if you use
, Brian Cardarella bcardare...@gmail.com wrote:
Sorry, forgot to answer the other question. I am using ActiveRecord.
Just a greenfield Rails 3.0.0.beta3 app
- Brian
On Jun 5, 3:42 pm, David Chelimsky dchelim...@gmail.com wrote:
On Jun 5, 2010, at 3:34 PM, Brian Cardarella wrote
On Jun 2, 2010, at 7:50 AM, John Feminella wrote:
If I have an object `obj` that is a SpecTask, and subsequently invoke
it, is there a way to programmatically determine the number of tests
that were successful, failed, and pending as a result of running that
SpecTask?
You could write a
On Jun 2, 2010, at 8:23 AM, John Feminella wrote:
On Wed, Jun 2, 2010 at 09:19, David Chelimsky dchelim...@gmail.com wrote:
On Jun 2, 2010, at 8:14 AM, John Feminella wrote:
On Wed, Jun 2, 2010 at 09:02, David Chelimsky dchelim...@gmail.com wrote:
On Jun 2, 2010, at 7:50 AM, John Feminella
On Jun 2, 2010, at 8:14 AM, John Feminella wrote:
On Wed, Jun 2, 2010 at 09:02, David Chelimsky dchelim...@gmail.com wrote:
On Jun 2, 2010, at 7:50 AM, John Feminella wrote:
If I have an object `obj` that is a SpecTask, and subsequently invoke
it, is there a way to programmatically
On Jun 2, 2010, at 5:57 PM, Lawrence Pit wrote:
Hi,
I've been using rspec 2.0.0 beta 8 for a while. All specs pass. Installed
beta 9, and more than half fail. Am I the only one who's seeing this? Not
sure what to do to get it all passing using beta 9..
What failures are you seeing?
On Jun 2, 2010, at 7:49 PM, Brian Cardarella wrote:
I followed the instructions on the wiki but I don't seem to have the
generator:
rails g rspec:install
Are the generators not working?
btw, I don't see rspec listed when I run 'rails generate'
Did you add rspec-rails to your Gemfile?
I'll take that to mean you got it working :)
On Jun 2, 2010, at 8:13 PM, Brian Cardarella wrote:
Ah, duh :p
On Jun 2, 9:03 pm, David Chelimsky dchelim...@gmail.com wrote:
On Jun 2, 2010, at 7:49 PM, Brian Cardarella wrote:
I followed the instructions on the wiki but I don't seem to have
On Jun 2, 2010, at 9:19 PM, Lawrence Pit wrote:
I now see all the failures are due to all my controller specs always getting
a response.body of type String with the value RSpec-generated template when
I use the beta 9 version.
I'm on rails edge.
Any idea where this string might
On May 31, 2010, at 7:41 AM, Joseph DelCioppio wrote:
Guys,
I've got an RSpec test that for the life of me I can't get to work. I
was hoping somebody could take a quick peek and let me know if they
see something wrong here:
Here is my code: http://gist.github.com/419793
Can anybody
on the questions.
Cheers,
David
On May 27, 2:44 am, Matt Wynne m...@mattwynne.net wrote:
On 27 May 2010, at 04:44, David Chelimsky wrote:
On May 26, 2010, at 9:37 PM, Nadal wrote:
Here is my spec.
describe Exception2db do
context attributes do
subject { Exception2db.create
Ruby-1.9.2 removes '.' from the $LOAD_PATH. There have been a couple of issues
reported against rspec-core-2 asking RSpec to add '.' to $LOAD_PATH for 1.9.2.
My instinct is that this is the wrong way to go; that Ruby is telling us to get
used to typing ./ when we run command line tools. What do
On May 26, 2010, at 8:23 AM, David Chelimsky wrote:
Ruby-1.9.2 removes '.' from the $LOAD_PATH. There have been a couple of
issues reported against rspec-core-2 asking RSpec to add '.' to $LOAD_PATH
for 1.9.2. My instinct is that this is the wrong way to go; that Ruby is
telling us to get
On May 26, 2010, at 3:04 PM, Nadal wrote:
Thanks. That got me moving.
I like how in rspec I can say context when I mean context and describe
when I mean describe. Going by that principal here I should have been
allowed to say pending when I mean pending and I should not be forced
to use it
On May 26, 2010, at 3:23 PM, Tim Walker wrote:
What is the functional difference between it and specify
None.
Thanks!
Tim
On Tue, May 25, 2010 at 5:18 PM, Matt Wynne m...@mattwynne.net wrote:
Cursory look at that blog post seems like it's covered most of what's in
this talk, but
On May 26, 2010, at 10:01 PM, rhydiant wrote:
Given that RSpec has the following methods to create test doubles ...
double(:my_test_double)
mock(:my_mock_object)
stub(:my_stub)
double(), mock(), and stub() all return the same type of object: a test double
(actually, it's a Mock, but
person = Person.new(
:first_name = David,
:last_name = Chelimsky
)
person.full_name.should == David Chelimsky
end
Which one is DRYer? You could argue the first one is, because the string
literals are not repeated. You could argue that the second one is, because the
variable names
pm, David Chelimsky dchelim...@gmail.com wrote:
On May 26, 2010, at 10:01 PM, rhydiant wrote:
Given that RSpec has the following methods to create test doubles ...
double(:my_test_double)
mock(:my_mock_object)
stub(:my_stub)
double(), mock(), and stub() all return the same type
On May 22, 2010, at 5:41 PM, Nadal wrote:
I am talking about rspec itself and running tests written for rspec.
This is what I did.
git clone http://github.com/dchelimsky/rspec.git
cd rspec
rake test
I am getting following error
rake aborted!
No such file or directory -
On May 23, 2010, at 12:55 PM, Brian Cardarella wrote:
Rick,
Cool, this looks like it should work. My original approach was to
find something that would work under autospec but I think that might
be getting too greedy in this case.
You could hook that up if you want to. Just need clear
On Sun, May 23, 2010 at 3:50 PM, Nadal node.j...@gmail.com wrote:
Did everything that was instructed.
Still the same error.
No such file or directory - /Users/nadal/.rubyforge/user-config.yml
Try adding that file and see what happens :)
On May 23, 11:35 am, David Chelimsky dchelim
On May 20, 2010, at 11:49 AM, Tom Ten Thij wrote:
The 'its' construct seems to not be working for me. I have narrowed it
down to a basic example that I think should be working. Note that when I
use a normal 'it' block with a subject in it, that works fine.
Any insights would be welcome:
On May 19, 2010, at 4:11 PM, Myron Marston wrote:
On my current rails project we're using both rspec and cucumber.
We've been diligent about keeping our specs as true unit tests, using
nulldb and mocking/stubbing to disconnect the specs from the database
and keep each spec focused on the
.
HTH,
David
Myron
On May 19, 2:19 pm, David Chelimsky dchelim...@gmail.com wrote:
On May 19, 2010, at 4:11 PM, Myron Marston wrote:
On my current rails project we're using both rspec and cucumber.
We've been diligent about keeping our specs as true unit tests, using
nulldb and mocking
On Mon, May 17, 2010 at 4:37 AM, Kwang how Tan li...@ruby-forum.com wrote:
Not if you don't post the failure messages :) Please do so.
Sorry, I don't understand what you mean.
Please explain.
Please run the spec and post the failure messages you get. Use the -b
flag you get a full backtrace:
On May 16, 2010, at 11:10 PM, Scott Taylor wrote:
On May 16, 2010, at 8:13 PM, David Chelimsky wrote:
On May 16, 2010, at 12:54 PM, Scott Taylor wrote:
Hey all,
I'm wondering if anyone has any experience with an automated test-case
generation tool like Quickcheck (for erlang/haskell
On May 15, 2010, at 7:18 PM, Kwang how Tan wrote:
I am having failing simple spec which I couldn't figure out why :-(
http://gist.github.com/402517
* ffaker (0.4.0)
* machinist (1.0.6)
* rails (3.0.0.beta3)
* rspec (2.0.0.beta.8)
* rspec-core (2.0.0.beta.8)
* rspec-expectations
On May 14, 2010, at 7:03 PM, Stu wrote:
Hi,
I have a group of non-Rails Ruby projects that all make heavy use of
RSpec. Each of these projects has a spec directory with a
helper.rb file. All the *_spec.rb files in the spec directory tree
do the usual
require File.dirname(__FILE__) +
On May 15, 2010, at 2:56 AM, rhydiant wrote:
I'm writting a code example for the following method:
def upload(email_address, product_data)
errors = []
user = resolve_user_from(email_address)
product_file_name = ProductFileHandler.persist(user,
product_data, errors)
On May 14, 2010, at 7:25 PM, Stu wrote:
Hi,
I have a non-Rails Ruby project that uses RSpec. It needs a shared
collection of fixture-like objects created, although they have nothing
to do with Rails, AR or database entries:
w1 = Widget.new(10)
w2 = Widget.new(20)
w3 = Widget.new(30)
#
On May 16, 2010, at 12:54 PM, Scott Taylor wrote:
Hey all,
I'm wondering if anyone has any experience with an automated test-case
generation tool like Quickcheck (for erlang/haskell). I'd be interested in
hearing any impressions, war stories, or dev workflows regarding a tool like
this.
On May 13, 2010, at 6:41 AM, Ants Pants wrote:
Hello everyone,
I'm just working my way through the RSpec/Cucumber book, I love the tool but
not so much the learning curve :(
Welcome! We're here to help.
Starting with my first view, is it okay for me, in the BDD world, to do the
talking about style.
Still got a lot to learn on all fronts.
Again, thanks.
-ants
On 13 May 2010 15:18, David Chelimsky dchelim...@gmail.com wrote:
On May 13, 2010, at 6:41 AM, Ants Pants wrote:
Hello everyone,
I'm just working my way through the RSpec/Cucumber book, I love
the tool
On May 10, 2010, at 6:51 PM, Rob Sanheim wrote:
I paired with Chad on Micronaut, and can confirm that fixtures were
not on our priority list. Note that fixtures would be supplied by
rspec-rails, though, not rspec-core (i.e. Micronaut), so other folks
may be working on adding fixture support
Hi Stephen,
On May 10, 2010, at 8:48 PM, Stephen Bannasch wrote:
I've created a shared_examples group that helps me dry up the testing of a
large set of similar rails controllers.
These controllers have an html interface but mostly what I am testing with
the shared_examples group is the
On May 7, 2010, at 5:59 AM, andrea longhi wrote:
Hello everybody,
I am experiencing the following problems, I googled quickly but I
couldn't find any documentation or solution to those issues:
1) the generator rails g rspec:helper does nothing;
See Known Issues on
On May 7, 2010, at 7:35 AM, David Chelimsky wrote:
On May 4, 2010, at 2:51 PM, Frank wrote:
Hi Guys,
I'm new to webrat and I've encountered a problem. I have a nested form
that I've created using the steps similar to the Rails Casts
http://railscasts.com/episodes/75-complex-forms-part
On May 4, 2010, at 2:51 PM, Frank wrote:
Hi Guys,
I'm new to webrat and I've encountered a problem. I have a nested form
that I've created using the steps similar to the Rails Casts
http://railscasts.com/episodes/75-complex-forms-part-3
As context, I have a form for programming
On May 6, 2010, at 8:47 AM, Rick DeNatale wrote:
On Thu, May 6, 2010 at 5:02 AM, ben rooney ben.roone...@googlemail.com
wrote:
Slightly flummoxed on this one.
Spec::Mocks::MockExpectationError in 'ChartEventsController handling
GET /chart_events should find all chart_events given a
On May 6, 2010, at 10:09 AM, Phillip Koebbe wrote:
Are these two forms theoretically functionally equivalent:
1)
car = stub_model(Car)
Car.stub(:new).and_return(car)
2)
Car.stub(:new).and_return(stub_model(Car))
I ask because I thought they were, but just hit something that
On May 3, 2010, at 6:06 AM, andrea longhi wrote:
Hello *,
I started today to test rspec current beta with ruby 1.9.2 and rails
3.0. I created a basic app with a scaffold. I am experiencing a lot of
failures in the geneated controller spec. I am pasting the complete
error string:
can't
On May 2, 2010, at 1:48 AM, Patrick J. Collins wrote:
I have something like:
class Foo
def initialize(template)
@template = template
end
def link
link_to foo, foo_path
end
def method_missing(*args, block)
@template.send(*args, block)
end
end
...
before(:all)
On Sun, May 2, 2010 at 1:48 AM, Patrick J. Collins
patr...@collinatorstudios.com wrote:
I have something like:
class Foo
def initialize(template)
�...@template = template
end
def link
link_to foo, foo_path
end
def method_missing(*args, block)
�...@template.send(*args,
On May 1, 2010, at 2:29 AM, Patrick J. Collins wrote:
Well, after some investigating, I discovered than another one of my spec files
was causing this behavior. When removing this other spec file, the one that
was failing via rake spec no longer failed.. Totally bizarre.
This is the spec
On Apr 30, 2010, at 9:36 AM, Steve Klabnik wrote:
Integration testing is also known as full-stack testing.
This is true in the Rails world but it is far from a universal truth. Before
Rails came around, integration testing (testing the integration between two or
more non-trivial components)
On Apr 30, 2010, at 11:34 AM, Phillip Koebbe wrote:
I have a helper method
def login_as(role)
user = stub_model(User)
user.stub(:is_administrator?).and_return(role == :admin)
User.stub(:find_by_id).and_return(user)
session[:user_id] = user.id
user
On Apr 29, 2010, at 7:40 AM, jollyroger wrote:
Ok,
fixed it, in a nutshell:
Doesnt work:
get :new, :format = :lightbox
Works:
get :new, :format = 'lightbox'
What was really confusing was that in BOTH cases the same URL appeared
in the log.
Here is my turn on what happened:
On Apr 29, 2010, at 9:54 AM, Amit Kulkarni wrote:
Hello all,
I am facing a weird problem.I am just trying to login but after entering
correct parameters it is showing error as invalid username and password.
I think there is some configuration or fixtures problem because if i try
to login
On Apr 29, 2010, at 12:48 PM, James H wrote:
Greetings.
My team at work is trying to decide between Cucumber and RSpec
integration tests for all future integration-style testing. The team
is divided on this, so I thought I'd approach the community to see
what the future of RSpec
On Apr 28, 2010, at 12:53 PM, aidy lewis wrote:
Hi,
I would like to test whether an array size is either of two integer
obejects
mark_up_parser.sorted_xml.size.should === (4..5)
However I am recieiving an exception of:
expected: 4..5,
got: 4
/issues
Thx
On Wed, Apr 28, 2010 at 1:08 AM, David Chelimsky dchelim...@gmail.com wrote:
On Apr 27, 2010, at 9:19 PM, Andrei Erdoss wrote:
I am using this line in my Gemfile: gem rspec-rails, :git =
git://github.com/rspec/rspec-rails.git
which installs the rspec-rails-2.0.0.beta.7
On Apr 26, 2010, at 4:29 PM, John Feminella wrote:
hi guys,
I'm trying to be diligent about checking my `rake` tasks with RSpec
tests, but in the process of feeling my way around I seem to have hit
a wall. I've got a really simple RSpec test that looks like this:
# ./test/meta_spec.rb
On Apr 27, 2010, at 3:46 PM, Andrei Erdoss wrote:
Hello,
I am following the example in the Rspec book, starting page 372, where a
controller's create message is spec'd.
it creates a new message do
Message.should_receive(:new).with(text=aquickbrown
fox )
post
On Tue, Apr 27, 2010 at 4:12 PM, David Chelimsky dchelim...@gmail.com wrote:
On Tue, Apr 27, 2010 at 4:04 PM, Andrei Erdoss erd...@gmail.com wrote:
Thank you for the fast response. What's the best way to handle the scenario
described with Rails 3, Rspec 2?
touch messages/create.html.haml
. Everything's still in beta (and in progress) right now.
On Tue, Apr 27, 2010 at 4:51 PM, David Chelimsky dchelim...@gmail.com
wrote:
On Apr 27, 2010, at 3:46 PM, Andrei Erdoss wrote:
Hello,
I am following the example in the Rspec book, starting page 372, where a
controller's create
-rails-1.
On Tue, Apr 27, 2010 at 5:12 PM, David Chelimsky dchelim...@gmail.com wrote:
On Tue, Apr 27, 2010 at 4:12 PM, David Chelimsky dchelim...@gmail.com wrote:
On Tue, Apr 27, 2010 at 4:04 PM, Andrei Erdoss erd...@gmail.com wrote:
Thank you for the fast response. What's the best way
On Apr 27, 2010, at 4:48 PM, Andrei Erdoss wrote:
Hello,
I also tried testing for the flash notice being set, but it's not working.
it sets a flash[:notice] message do
post :create
flash[:notice].should == The message was saved successfully.
end
this is the line in the
On Fri, Apr 23, 2010 at 10:37 AM, Steve vertebr...@gmail.com wrote:
I have some specs that use controller_name because of namespaced
temporary controllers in my specs. In rspec-rails2 I'm told that
controller_name is not a valid method. Is there a workaround for this?
Try:
describe blah de
On Apr 23, 2010, at 8:25 AM, Daniel Salmeron Amselem wrote:
I am trying to run a test for a controller with the spec command
like this: spec spec/controllers/account_controller_spec.rb and this
is the result:
damse...@logicmail$ spec spec/controllers/accounts_controller_spec.rb
!
(ArgumentError)
There is a ticket on this: http://github.com/rspec/rspec-rails/issues#issue/12
Unfortunately, I've not been able to reproduce it yet.
On Tue, Apr 27, 2010 at 5:59 PM, David Chelimsky dchelim...@gmail.com wrote:
On Apr 27, 2010, at 4:48 PM, Andrei Erdoss wrote:
Hello,
I
On Thu, Apr 22, 2010 at 7:11 PM, John Dell spov...@gmail.com wrote:
I'm trying to mark an example as pending w/rspec2 rails3, but I'm getting:
Failure/Error: pending
undefined local variable or method `pending' for
#Rspec::Core::ExampleGroup::Nested_1:0x10a737c50 @__memoized={}
Is
On Wed, Apr 21, 2010 at 6:13 PM, John Dell spov...@gmail.com wrote:
I'm diving into rails3 and rspec2. Things are a bit rough
New application using RVM w/ruby 1.8.7 p249, Rails (3.0.0.beta3), RSpec
(2.0.0.beta.7), ruby-debug (0.10.3), ruby-debug-base (0.10.3)
I created a .rspec file in
On Tue, Apr 20, 2010 at 2:05 PM, David Chelimsky dchelim...@gmail.com wrote:
On Apr 20, 2010, at 1:57 PM, Mike Sassak wrote:
On Tue, Apr 20, 2010 at 2:33 PM, Ed Howland ed.howl...@gmail.com wrote:
Please forgive the x-post.
I just got back from the Great Lakes Ruby Bash. They had several
On Thu, Apr 15, 2010 at 6:39 PM, Mark Nijhof
mark.nij...@cre8ivethought.com wrote:
Hi,
I am working on creating something that will monitor some files and do
something when they are changed. I am using FSSM for the actual
monitoring. Now I want to verify that it gets initialized with the
On Apr 17, 2010, at 9:42 AM, Tim Riendeau wrote:
I am having similar issue getting this working. I am running rails3.beta3
with ruby 1.8.7. I followed http://gist.github.com/365816 and I get the
following:
loading autotest/rails_rspec2
Autotest style autotest/rails_rspec2 doesn't seem to
On Apr 16, 2010, at 8:07 AM, Nicholas Wieland wrote:
Hi *,
I need to test cookie creation with rspec and using Rack::Test, but for some
reason I'm not able to pair the real app that creates a cookie with the rspec
tests.
The spec is like this:
it should authenticate using cookies do
On Apr 16, 2010, at 8:49 AM, Nicholas Wieland wrote:
On Apr 16, 2010, at 3:12 PM, David Chelimsky wrote:
On Apr 16, 2010, at 8:07 AM, Nicholas Wieland wrote:
What versions of rails, rspec, rspec-rails, ruby, etc?
Where does this spec live?
It's sinatra 1.0, not rails.
In which case
On Apr 16, 2010, at 8:29 AM, Douglas Campos wrote:
Hi!
I have a slow spec. Before anyone shouts, it's an service integration test,
that needs the server available. As I don't have this server near every time,
is there an easy way to skip this spec during rake spec / autospec? I ended
On Apr 14, 2010, at 7:37 AM, Mikel Lindsaar wrote:
Hi all,
David, before I begin, thanks for your hard work :)
I saw a thread or a blog post, I think it was on your site David, that
Autotest is not working with Rails at the moment, circa beta4.
Has that since changed? If not,
On Apr 12, 2010, at 2:38 PM, Michael Guterl wrote:
On Mon, Apr 12, 2010 at 1:16 PM, David Chelimsky dchelim...@gmail.com wrote:
On Apr 12, 2010, at 11:17 AM, Michael Guterl wrote:
I'm curious what the current state of test spies in rspec is?
What is everyone using for this? not a mock
On Apr 12, 2010, at 11:17 AM, Michael Guterl wrote:
I'm curious what the current state of test spies in rspec is?
What is everyone using for this? not a mock? rr? rspec-spies?
I see that spies were going to be added to rspec 1.3.0, but pulled
because of a bug
On Feb 11, 10:15 am, David Chelimsky dchelim...@gmail.com wrote:
On Thu, Feb 11, 2010 at 1:56 PM, Andy Koch andy.k...@pc-doctor.com
wrote:
Hi,
trying to getautospecworking on a new Mac (snow lep) but when
runningautospecon cmd it just exists with no result or output of any
kind
On Apr 4, 2010, at 11:21 PM, Marcelo de Moraes Serpa wrote:
For example, I have this scenario where a Directory model will only save if
it can connect to the LDAP server. In a test I'm writting, though, connecting
to the LDAP server is not relevant, so I tried doing this:
context LDAP
, at 7:32 AM, David Chelimsky wrote:
On Sat, Apr 3, 2010 at 8:56 AM, Vojto Rinik zero0...@gmail.com wrote:
Hello RSpec users!
I have one abstract class and a few classes that inherit from that
abstract
one.
Ruby doesn't have abstract classes. You can have a base class that you
don't
On Sat, Apr 3, 2010 at 8:56 AM, Vojto Rinik zero0...@gmail.com wrote:
Hello RSpec users!
I have one abstract class and a few classes that inherit from that abstract
one.
Ruby doesn't have abstract classes. You can have a base class that you
don't _intend_ to instantiate directly, but there's
On Sat, Apr 3, 2010 at 10:45 PM, Julian Leviston jul...@leviston.net wrote:
On 04/04/2010, at 7:32 AM, David Chelimsky wrote:
On Sat, Apr 3, 2010 at 8:56 AM, Vojto Rinik zero0...@gmail.com wrote:
Hello RSpec users!
I have one abstract class and a few classes that inherit from that abstract
On Apr 1, 2010, at 1:30 AM, drewB wrote:
Is there a built-in matcher for a response returning a bad request
(e.g. header code in the 400s)? For example, response.should
be_bad_request.
No, but its dead simple to write your own:
Spec::Matchers.define :be_bad_request do
match do |response|
Looks like a bug. Wanna file a report? This is rspec-1, so
http://rspec.lighthouseapp.com is fine.
Thx
On Wed, Mar 31, 2010 at 9:51 PM, Brian Cardarella bcardare...@gmail.com wrote:
RSpec 1 and before :each
On Mar 31, 5:33 pm, David Chelimsky dchelim...@gmail.com wrote:
On Mar 31, 2010, at 3
is reflected in
'it' but not in 'its'
I also opened a Lighthouse ticket for this
Cool. Thanks.
- Brian
On Apr 1, 8:57 am, David Chelimsky dchelim...@gmail.com wrote:
Looks like a bug. Wanna file a report? This is rspec-1,
sohttp://rspec.lighthouseapp.comis fine.
Thx
On Apr 1, 2010, at 3:14 PM, drewB wrote:
Occasionally, I find myself in a situation where I want to have a mock
obj returned if a method is called with a particular argument but
handled normally otherwise. For example, lets say I have a Model
named User and I am specing a controller that
More FYI: Ryan released ZenTest 4.3.1 yesterday to address this issue,
so you can upgrade to the latest and greatest.
On Tue, Mar 30, 2010 at 2:53 PM, David Chelimsky dchelim...@gmail.com wrote:
FYI - I uninstalled ZenTest-4.3.0 and installed ZenTest-4.2.1 and all is well:
[sudo] gem uninstall
On Mar 31, 2010, at 3:54 PM, Brian Cardarella wrote:
Is there a reason why I cannot access the subject in the before block?
It seems to me that anything that I have access to in the it blocks
should also be accessible in the before block.
No reason. You using rspec 1 or 2? Also, before(:each)
On Mar 31, 2010, at 5:13 PM, Oren Golan wrote:
I want to verify the href is correct:
p class=website
a href=http://www.com.com;Website/a
/p
my step in the cucumber file:
And the website class should have www.happyhour.com
the step definition:
Then /^the ([^\]*) class should have
On Mar 30, 2010, at 9:23 AM, George wrote:
When you need to check several properties of an object, what is the
best way to match them all?
I'm using the 'satisfy' matcher at the moment but perhaps there's a
better way than this:
flight.should satisfy { |f|
f.booking_code
Please see (and comment on) the bug report for autotest-rails that Matt raised:
http://rubyforge.org/tracker/index.php?func=detailaid=28034group_id=419atid=1678
On Mar 30, 2010, at 12:21 PM, Edgar Gonzalez wrote:
Hi Matt,
I have the same misbehavior after update the gems,the autotest's
FYI - I uninstalled ZenTest-4.3.0 and installed ZenTest-4.2.1 and all is well:
[sudo] gem uninstall ZenTest
[sudo] gem install ZenTest --version 4.2.1
HTH,
David
On Tue, Mar 30, 2010 at 12:44 PM, Matthew O'riordan
li...@ruby-forum.com wrote:
Hi Edgar
I think the error you are saying is a
On Mar 29, 2010, at 2:48 PM, Ashley Moran wrote:
Hi
Hopefully I'll get chance to finish Spork integration with RSpec 2 this
weekend. I've got two questions...
(1) What's the best way to merge my changes back in? My shockingly bad
Git-fu has made it impossible to rebase on top of
On Mar 29, 2010, at 10:36 PM, Jimmy Soho wrote:
Hi All,
We have many specs like the pattern given below.
The problem is that it's slow, because each inner context block will execute
the before(:all) in the outer describe block.
Is there a way to setup an inner context block that does
On Mar 26, 2010, at 6:16 AM, DEfusion wrote:
I'm trying to stub a controller method using RSpec 2.0.0.beta.4 and
Rails 3 and whenever I attempt to do it I get an error, e.g.
controller.stub!(:current_host).and_return(Factory.build(:host))
post :create
Results in:
Failure/Error:
On Thu, Mar 25, 2010 at 5:11 AM, rodrigo benenson
rodrigo.benen...@gmail.com wrote:
Hello RSpec community !
Welcome, Rodrigo.
I'm a Ruby on Rails newby trying to get my first application running.
I already got some of the website running and now I'm writting the
tests to verify that
On Wed, Mar 24, 2010 at 10:39 PM, Mauricio Aniche
mauricioani...@gmail.com wrote:
Hi,
I am trying to test the destroy method in my rails 3 controller, but I
always get an no route matches {} error. But the route do exist, as I can
see by running rake routes.
What version of rspec and
On Wed, Mar 24, 2010 at 1:49 PM, thoen th...@edgevaleinteractive.com wrote:
On Mar 24, 2:39 pm, thoen th...@edgevaleinteractive.com wrote:
I have a mock object (Person) that is associated with another object
(my_object) through a belongs_to association. When I check whether
my_object is valid
On Wed, Mar 24, 2010 at 10:39 AM, Ben Fyvie ben.fy...@champsoftware.com wrote:
We have a test that has been working find until we upgraded to rails 2.3.5.
I’m not too familiar with mocks/stubs so maybe there is an easy solution.
Here is a simple example of our scenario.
Class Person
On Mar 25, 2010, at 8:44 AM, garren wrote:
I'm actually looking to mock my_helper_method here. Or to be more
general any method that is created outside of a class.
When you create a method outside a class, it is available on every object:
def foo
foo
end
class Bar
end
describe Bar do
it
On Mar 20, 2010, at 1:22 PM, Phillip Koebbe wrote:
Patrick, don't listen to me :) Listen to David.
That's just silly. Patrick, please listen to both of us (and everyone else who
contributes to this list). What Phillip wrote about the difference between
mocks and stubs was dead on. I was
1001 - 1100 of 2985 matches
Mail list logo