On Wed, Sep 10, 2008 at 3:06 AM, Wincent Colaiuta [EMAIL PROTECTED] wrote:
Hi all,
I had some stories which worked fine under RSpec 1.1.3 which are broken
under 1.1.4 (suddenly all steps are marked as PENDING, and one of the steps
raises a NoMethodError due to an unexpected nil object in the
On Wed, Sep 10, 2008 at 12:24 PM, Mark Dodwell [EMAIL PROTECTED] wrote:
It seems that RSpec-Rails isn't restricted to the HTTP methods
correctly.
For example doing:
http://foo.local/session/destroy
in the browser doesn't work, because the destroy action is only
recognised with the HTTP
On Fri, Sep 12, 2008 at 10:01 AM, Pat Maddox [EMAIL PROTECTED] wrote:
On Fri, Sep 12, 2008 at 10:58 AM, Damian Jones [EMAIL PROTECTED] wrote:
David
Are you saying this part should work:
And the page should show, Product 1 do |text|
response.should have_text(/#{text}/)
end
because I'm
On Fri, Sep 12, 2008 at 10:35 AM, Evan David Light
[EMAIL PROTECTED] wrote:
Last night, I gave a presentation to the DC Ruby Users Group
(http://dcrug.org) on Plain Text Stories with Ruby. I spoke on both RSpec
Plain Text Stories, which I have used, and Cucumber which I started to dig
into a
On Fri, Sep 12, 2008 at 11:04 AM, Evan David Light
[EMAIL PROTECTED] wrote:
On Sep 12, 2008, at 11:51 AM, David Chelimsky wrote:
Please keep in mind that this is an *additional* way to do things -
you can still write your steps exactly as you do in Story Runner,
using regexps.
Ah, good
On Fri, Sep 12, 2008 at 11:16 AM, Evan David Light
[EMAIL PROTECTED] wrote:
On Sep 12, 2008, at 11:50 AM, David Chelimsky wrote:
I commented on your blog.
Yup, I know. I know very well who you are, David. ;-) I've seen you speak
a few times and even chatted with you briefly outside
On Fri, Sep 12, 2008 at 11:19 AM, Evan David Light
[EMAIL PROTECTED] wrote:
On Sep 12, 2008, at 12:14 PM, David Chelimsky wrote:
What you're proposing might look this:
Scenario: division
Given a numerator
And a denominator
Then the calculator should provide a quotient
|numerator
On Fri, Sep 12, 2008 at 11:37 AM, David Chelimsky [EMAIL PROTECTED] wrote:
On Fri, Sep 12, 2008 at 11:22 AM, Damian Jones [EMAIL PROTECTED] wrote:
David Chelimsky wrote:
To make that transition easy for you, I'd recommend either moving to
cucumber now, or at least taking the decoupled step
On Fri, Sep 12, 2008 at 11:22 AM, Damian Jones [EMAIL PROTECTED] wrote:
David Chelimsky wrote:
To make that transition easy for you, I'd recommend either moving to
cucumber now, or at least taking the decoupled step definitions
approach within Story Runner. Check out http://pastie.org/271244
On Fri, Sep 12, 2008 at 7:27 PM, Matt Wynne [EMAIL PROTECTED] wrote:
On 12 Sep 2008, at 22:37, Damian Jones wrote:
David Chelimsky wrote:
On Fri, Sep 12, 2008 at 7:46 AM, aslak hellesoy
[EMAIL PROTECTED] wrote:
C:\gem install aslakhellesoy-cucumber
Please get it with Git and build
On Sun, Sep 14, 2008 at 7:39 AM, Damian Jones [EMAIL PROTECTED] wrote:
I know that cucumber does not allow ambiguous steps to stop duplication
of specs,
It's not to stop duplication of specs, it's to avoid the possibility
that you could write this:
Then /I should see (.*)
Then /I should
On Sun, Sep 14, 2008 at 9:13 AM, Joseph Wilk [EMAIL PROTECTED] wrote:
Hello,
Can you give an example of how you would want the step body of:
Then /I should see (.*)/ do |text|
to be different.
I would aim for this step to be reusable. When I have conflicts I take
the approach of adding
On Sep 14, 2008, at 9:39 AM, Pat Maddox [EMAIL PROTECTED] wrote:
Then /I should see (.*)
Then /I should see (.*) in the list of authors/
Both of these would respond to:
Then I should see Aslak in the list of authors
If you change the first one to
Then /I should see (.*?)$/
then it should
On Mon, Sep 15, 2008 at 5:09 AM, Joseph Wilk [EMAIL PROTECTED] wrote:
Thanks to a pointer from lizkeogh.com site I've been discovering the joy
of the Mockito (http://mockito.org/) mocking framework for Java. It
verifies behaviour after the action. It struck me how this matched the
format I use
On Mon, Sep 15, 2008 at 7:39 AM, Pat Maddox [EMAIL PROTECTED] wrote:
So I'm proposing the idea of adding 'should_have_received' and test_spy
in Rspec:
---
x = test_spy('like a mock but more into espionage')
#Action which does not fail on unexpected method but just records calls.
of a step. Throwing away the unmatched characters. Does
anyone have good examples where they would?
I think you've got this right and exposed a bug. Wanna report it to
lighthouse and/or fix it?
Thanks,
David
Joseph Wilk
--
http://www.joesniff.co.uk
David Chelimsky wrote:
On Sun, Sep 14, 2008
On Mon, Sep 15, 2008 at 7:18 AM, David Chelimsky [EMAIL PROTECTED] wrote:
On Mon, Sep 15, 2008 at 5:09 AM, Joseph Wilk [EMAIL PROTECTED] wrote:
Thanks to a pointer from lizkeogh.com site I've been discovering the joy
of the Mockito (http://mockito.org/) mocking framework for Java. It
verifies
On Mon, Sep 15, 2008 at 7:49 AM, aslak hellesoy
[EMAIL PROTECTED] wrote:
On Mon, Sep 15, 2008 at 2:40 PM, David Chelimsky [EMAIL PROTECTED] wrote:
On Mon, Sep 15, 2008 at 3:54 AM, Joseph Wilk [EMAIL PROTECTED] wrote:
Then /I should see (.*) in the page/ do |text|
That should raise
On Mon, Sep 15, 2008 at 8:13 AM, aslak hellesoy
[EMAIL PROTECTED] wrote:
On Mon, Sep 15, 2008 at 3:07 PM, Joseph Wilk [EMAIL PROTECTED] wrote:
David Chelimsky wrote:
On Mon, Sep 15, 2008 at 3:54 AM, Joseph Wilk [EMAIL PROTECTED]
wrote:
You can still use non-regular expression steps
On Mon, Sep 15, 2008 at 8:21 AM, David Chelimsky [EMAIL PROTECTED] wrote:
On Mon, Sep 15, 2008 at 8:13 AM, aslak hellesoy
[EMAIL PROTECTED] wrote:
On Mon, Sep 15, 2008 at 3:07 PM, Joseph Wilk [EMAIL PROTECTED] wrote:
David Chelimsky wrote:
On Mon, Sep 15, 2008 at 3:54 AM, Joseph Wilk [EMAIL
On Mon, Sep 15, 2008 at 8:55 AM, Joseph Wilk-2
[EMAIL PROTECTED] wrote:
I like this much better. -Guiding people to use regexen properly is
better than redefining their semantics.
Well put. Do you mind if I add this David?
Well - it turns out that this is slightly more complicated. The code
On Mon, Sep 15, 2008 at 12:26 PM, Christopher Bailey
[EMAIL PROTECTED] wrote:
I'm trying to test some of my helpers. I have one helper (in module
LocationsHelper) that calls a helper/method in ApplicationHelper. If I
include ApplicationHelper and LocationHelper in my spec, and then I call the
On Mon, Sep 15, 2008 at 4:01 PM, Joseph Wilk [EMAIL PROTECTED] wrote:
Tim Glen wrote:
1. Is there a way to stub out the model to return some fixture-type
records?
2. Does anyone have an idea as to how we could refactor this into a
better pattern? Those 2 projects are pretty specific to the
the
ApplicationHelper module into the helper object. My instinct is yes.
WDYT?
Cheers,
David
On Mon, Sep 15, 2008 at 11:15 AM, David Chelimsky [EMAIL PROTECTED]
wrote:
On Mon, Sep 15, 2008 at 12:26 PM, Christopher Bailey
[EMAIL PROTECTED] wrote:
I'm trying to test some of my helpers. I have
On Tue, Sep 16, 2008 at 12:30 AM, Nubee Rails [EMAIL PROTECTED] wrote:
Please help me to understand why runner is not picking steps.
http://pastie.org/273126
Need a little more information:
What command are you using to run the scenarios?
Where is filter defined and captured?
Hi Damian,
On Tue, Sep 16, 2008 at 6:43 AM, Joseph Wilk [EMAIL PROTECTED] wrote:
Damian Jones wrote:
I was wondering what the correct procedure would be for spec'ing the
following story line
First, a bit of remedial terminology ;)
For better or worse, we generally use spec'ing to describe
Hi Matt,
On Mon, Sep 15, 2008 at 12:28 PM, Matt Wynne [EMAIL PROTECTED] wrote:
It's all gone a bit meta.
I've started noticing patterns in my specs, where I want more than one class
to satisfy a specific bunch of behaviours.
I know I can use it_should_behave_like and this works in simple
On Tue, Sep 16, 2008 at 9:55 AM, Damian Jones [EMAIL PROTECTED] wrote:
David Chelimsky wrote:
2. add the data in the current step
When(/^I pick (.*) from (.*)$/) do |option_value, field_name|
field_name.gsub('
','').constantize.find_or_create_by_name(option_value)
selects option_value
On Tue, Sep 16, 2008 at 1:59 PM, Mark Wilden [EMAIL PROTECTED] wrote:
On Tue, Sep 16, 2008 at 10:00 AM, Martin Streicher
[EMAIL PROTECTED] wrote:
3/ Has any documented how to run the debugger via rspec to help track down
errors?
We TDD/BDD/Agile practitioners aren't supposed to use a
On Tue, Sep 16, 2008 at 2:00 PM, Damian Jones [EMAIL PROTECTED] wrote:
OK,
I managed to get it to work using David's option 1.
1. add the data in a previous step
Given /an? (.*) named (.*)$/ do |class_name, object_name|
class_name.gsub('
On Tue, Sep 16, 2008 at 8:16 PM, Scott Taylor
[EMAIL PROTECTED] wrote:
Shouldn't pending 'a message' work in cucumber? Is this a bug? Currently
it's raising Rspec's PendingExpectationError.
This came up last week:
http://groups.google.com/group/rspec/browse_thread/thread/84743f0ef89a82f/
. Aslak you never explained why you
designed it like that - how does it help with your workflow?
On 17 Sep 2008, at 02:20, David Chelimsky wrote:
On Tue, Sep 16, 2008 at 8:16 PM, Scott Taylor
[EMAIL PROTECTED] wrote:
Shouldn't pending 'a message' work in cucumber? Is this a bug?
Currently
On Wed, Sep 17, 2008 at 11:51 AM, Dan [EMAIL PROTECTED] wrote:
Hello,
I'm working on a contract that doesn't use rspec. When I try and run
autotest I get the following:
loading autotest/rails_rspec
Autotest style autotest/rails_rspec doesn't seem to exist. Aborting.
I uninstalled the
On Wed, Sep 17, 2008 at 4:54 PM, Matt Wynne [EMAIL PROTECTED] wrote:
On 16 Sep 2008, at 23:38, James Cox wrote:
BTW - do any 'proper' tdd/bdd types here reccommend any specific books?
The Michael Feathers book (Working with Legacy Code) is well regarded on
this list for teaching you how to
On Wed, Sep 17, 2008 at 5:58 PM, aslak hellesoy
Can we all please stop talking about best practices? It always
depends. If people talk about best practices then others will be more
inclined to apply them without thinking.
http://www.satisfice.com/blog/archives/27
On Sep 18, 2008, at 12:27 PM, Mark Wilden [EMAIL PROTECTED] wrote:
On Thu, Sep 18, 2008 at 9:17 AM, Joaquin Rivera Padron [EMAIL PROTECTED]
wrote:
I'll try to repeat the case in another project, I guess maybe only
after autotest reruns *all* the specs (it does so from time to time)
is
On Fri, Sep 19, 2008 at 8:22 AM, Todd Tyree [EMAIL PROTECTED] wrote:
I'm seeing something strange and was just wondering if someone can confirm
my assumptions for me:
I have user model with a number of specs: some of them use fixtures and
some of them don't. Today, while talking someone
Hey all,
Let's make this official. We're planning to replace the RSpec Story
Runner with Cucumber. The rspec-1.1.5 release will still include the
Story Runner (several fixes since the last release). So if you're not
already using stories and you want to start, start with cucumber
On Mon, Sep 22, 2008 at 4:51 PM, Ashley Moran
[EMAIL PROTECTED] wrote:
On Sep 22, 2008, at 2:52 pm, David Chelimsky wrote:
Feel free to respond with questions/concerns (praise is welcome too!).
We're really excited about Cucumber and all the benefits it brings
(see http
On Tue, Sep 23, 2008 at 4:21 AM, Ashley Moran
[EMAIL PROTECTED] wrote:
On 23 Sep 2008, at 02:35, David Chelimsky wrote:
This should work right now with both 'rake spec' and 'cucumber features'
It does, but only as cucumber features if I do cucumber
features/descriptions/xyz.feature
, David Chelimsky [EMAIL PROTECTED] wrote:
On Tue, Sep 23, 2008 at 4:21 AM, Ashley Moran
[EMAIL PROTECTED] wrote:
On 23 Sep 2008, at 02:35, David Chelimsky wrote:
This should work right now with both 'rake spec' and 'cucumber features'
It does, but only as cucumber features if I do cucumber
On Wed, Aug 27, 2008 at 9:56 AM, Joe Van Dyk [EMAIL PROTECTED] wrote:
No, I don't get any output from that, or by using the spec command.
Nothing got overwritten.
Joe - trying to get caught up w/ my mail :)
Did you ever get this resolved?
Joe
On Mon, Aug 25, 2008 at 4:44 PM, Matt Wynne
On Wed, Sep 24, 2008 at 8:23 AM, Matt Wynne [EMAIL PROTECTED] wrote:
On 24 Sep 2008, at 13:35, Carlos Rafael Belizón Ibáñez wrote:
Hi, I have one problem testing one method to learn rSpec. This is the
example
#foo.rb
class Foo ActiveRecord::Base
has_one :bar
def foo
@bar.bar -= -
On Wed, Sep 24, 2008 at 9:21 AM, Matt Wynne [EMAIL PROTECTED] wrote:
On 24 Sep 2008, at 14:38, David Chelimsky wrote:
On Wed, Sep 24, 2008 at 8:23 AM, Matt Wynne [EMAIL PROTECTED] wrote:
On 24 Sep 2008, at 13:35, Carlos Rafael Belizón Ibáñez wrote:
If you create a mock object using
On Wed, Sep 24, 2008 at 11:46 AM, Fernando Perez [EMAIL PROTECTED] wrote:
Hi,
I have found 2 troubles with rspec, it is currently running the test
suites in the following cases:
RSpec doesn't automatically run your examples for you. Autotest does.
1) when I only edit comments in the files.
On Wed, Sep 24, 2008 at 2:43 PM, Fernando Perez [EMAIL PROTECTED] wrote:
I'd like to know: in a nutshell what's the difference between Webrat and
Cucumber?
I saw that in RSpec 1.1.5, Story Runner will be replaced by Cucumber, so
isn't learning Cucumber compulsory?
No you didn't. You saw that
On Wed, Sep 24, 2008 at 5:59 PM, Carlos Rafael Belizón Ibáñez
[EMAIL PROTECTED] wrote:
I'm really need your help guys to understand the philosophy of BDD. This
is a par of my Final Career Project.
Here's a short tutorial to get you started.
On Thu, Sep 25, 2008 at 8:09 AM, Carlos Rafael Belizón Ibáñez
[EMAIL PROTECTED] wrote:
El jue, 25-09-2008 a las 12:44 +0100, Matt Wynne escribió:
Have a look at this:
http://gist.github.com/12805
When you call foo -= 1, ruby does two things:
(1) asks foo for its value
(2) tells foo to
On Thu, Sep 25, 2008 at 11:56 AM, Mark Wilden [EMAIL PROTECTED] wrote:
On Thu, Sep 25, 2008 at 9:33 AM, Nick Hoffman [EMAIL PROTECTED] wrote:
I noticed in the RSpec documentation that object.should raise_error
isn't enclosed in a begin..rescue..end :
On Thu, Sep 25, 2008 at 12:33 PM, Nick Hoffman [EMAIL PROTECTED] wrote:
On Thu, Sep 25, 2008 at 9:33 AM, Nick Hoffman [EMAIL PROTECTED] wrote:
I noticed in the RSpec documentation that object.should raise_error
isn't enclosed in a begin..rescue..end :
On Thu, Sep 25, 2008 at 12:47 PM, Nick Hoffman [EMAIL PROTECTED] wrote:
I'm calling #stub! and #should_receive on the same method within a class,
and am finding that the method doesn't return the value given to #stub!
216 it 'should make a map marker' do
217 mock_property = mock
On Thu, Sep 25, 2008 at 1:04 PM, Nick Hoffman [EMAIL PROTECTED] wrote:
On 2008-09-25, at 13:58, Tero Tilus wrote:
2008-09-25 13:47, Nick Hoffman:
I'm calling #stub! and #should_receive on the same method within a
class, and am finding that the method doesn't return the value given
to #stub!
On Thu, Sep 25, 2008 at 1:34 PM, Nick Hoffman [EMAIL PROTECTED] wrote:
On 2008-09-25, at 14:04, David Chelimsky wrote:
On Thu, Sep 25, 2008 at 12:47 PM, Nick Hoffman [EMAIL PROTECTED]
wrote:
I'm calling #stub! and #should_receive on the same method within a class,
and am finding
On Thu, Sep 25, 2008 at 3:50 PM, Wincent Colaiuta [EMAIL PROTECTED] wrote:
The following trick, calling pending from inside the before block,
effectively does what I want. But I'm wondering if I can count on this
behaviour going forward? What do you think?
Pending is not going anywhere.
On Fri, Sep 26, 2008 at 7:59 AM, Matt Wynne [EMAIL PROTECTED] wrote:
One of the promises of using treetop is the ability to extend the
grammar yourself to include keywords like Which.
Wow. OK I need to check that out.
I don't know how directly this is supported at this point - when I
said
On Fri, Sep 26, 2008 at 8:42 AM, Wincent Colaiuta [EMAIL PROTECTED] wrote:
El 26/9/2008, a las 14:59, David Chelimsky [EMAIL PROTECTED]
escribió:
On Thu, Sep 25, 2008 at 3:50 PM, Wincent Colaiuta [EMAIL PROTECTED] wrote:
The following trick, calling pending from inside the before block
On Fri, Sep 26, 2008 at 8:47 AM, Juanma Cervera [EMAIL PROTECTED] wrote:
Thanks Aslak.
when I executed ruby script/generate cucumber, after installing the
plugins, these are the folders and files that were created:
features/steps
features/steps/env.rb
features/steps/common_webrat.rb
On Fri, Sep 26, 2008 at 12:18 PM, Mark Wilden [EMAIL PROTECTED] wrote:
On Fri, Sep 26, 2008 at 9:47 AM, Ashley Moran
[EMAIL PROTECTED] wrote:
(be sure to spec what attributes your classes have if you're scared of
pollution!)
As part of the TDD process, I spec all attributes, but this
, 2008, at 8:52 AM, David Chelimsky wrote:
On Thu, Sep 25, 2008 at 9:42 AM, Michael Latta [EMAIL PROTECTED] wrote:
The problem I have with this reasoning is that the point of plain text
stories is to get more stakeholder involvement. Being able to express
shared content in plain text allows
On Fri, Sep 26, 2008 at 5:38 PM, Mark Wilden [EMAIL PROTECTED] wrote:
On Fri, Sep 26, 2008 at 3:10 PM, David Chelimsky [EMAIL PROTECTED]
wrote:
Now sometimes there will be some up-front modeling discussions and you
may have a sense that a model needs a specific set of fields just
because
On Fri, Sep 26, 2008 at 12:36 PM, Tero Tilus [EMAIL PROTECTED] wrote:
I was experiencing the weirdest behavior (rake spec running fine
without a test database) the other day. Turned out that actually rake
spec was (and has been for heavens know how long for me) running in
development
On Fri, Sep 26, 2008 at 1:42 PM, Mark Wilden [EMAIL PROTECTED] wrote:
On Fri, Sep 26, 2008 at 9:49 AM, Scott Taylor
[EMAIL PROTECTED] wrote:
On Sep 26, 2008, at 12:38 PM, Tim Glen wrote:
Oh, and I do have this line in my spec_helper:
config.use_transactional_fixtures = true
I assume that
On Fri, Sep 26, 2008 at 6:47 PM, Mark Wilden [EMAIL PROTECTED] wrote:
On Fri, Sep 26, 2008 at 4:16 PM, David Chelimsky [EMAIL PROTECTED]
wrote:
DataMapper, for example, offers auto-migrations. You just add a
property to your model file and it takes care of the migration for
you
On Sat, Sep 27, 2008 at 3:11 PM, Ben Mabey [EMAIL PROTECTED] wrote:
Tim Harper wrote:
I was getting a little tired of adding 2 plugins every time I create a
new rails project, so I just built an rspec-rails gemspec, and it
works perfectly well. Does anybody know why there isn't a public
On Sat, Sep 27, 2008 at 2:29 PM, Mark Wilden [EMAIL PROTECTED] wrote:
On Sat, Sep 27, 2008 at 11:26 AM, Dan North [EMAIL PROTECTED] wrote:
It seems these conversations come up time and again because Rails
overloads the idea of model. In a Rails app the model serves as both your
domain model
On Sun, Sep 28, 2008 at 9:47 AM, Ashley Moran
[EMAIL PROTECTED] wrote:
Hi
Just had a surprising result:
it should not appear in the Story.unposted list do
@story.save
lambda {
@story.post_to_twitter(@twitter_client)
}.should change { Story.unposted }.from([EMAIL
On Sun, Sep 28, 2008 at 10:43 AM, David Chelimsky [EMAIL PROTECTED] wrote:
On Sun, Sep 28, 2008 at 9:47 AM, Ashley Moran
[EMAIL PROTECTED] wrote:
Hi
Just had a surprising result:
it should not appear in the Story.unposted list do
@story.save
lambda {
@story.post_to_twitter
On Sun, Sep 28, 2008 at 11:01 AM, David Chelimsky [EMAIL PROTECTED] wrote:
On Sun, Sep 28, 2008 at 10:43 AM, David Chelimsky [EMAIL PROTECTED] wrote:
On Sun, Sep 28, 2008 at 9:47 AM, Ashley Moran
[EMAIL PROTECTED] wrote:
Hi
Just had a surprising result:
it should not appear
. Anybody else have any opinions?
David
Michael
On Sep 28, 2008, at 11:13 AM, David Chelimsky wrote:
On Sun, Sep 28, 2008 at 11:01 AM, David Chelimsky [EMAIL PROTECTED]
wrote:
On Sun, Sep 28, 2008 at 10:43 AM, David Chelimsky [EMAIL PROTECTED]
wrote:
On Sun, Sep 28, 2008 at 9:47 AM, Ashley
On Sun, Sep 28, 2008 at 1:55 PM, Fernando Perez [EMAIL PROTECTED] wrote:
Bloody keyboard! del and enter keys are too close to one another...
So my other questions are:
- Where does Cucumber take its DB data from? Does it use the dev DB?
Does it copy the data from my dev DB into the test DB?
RSpec-1.1.5 has been released
RSpec is a Behaviour Driven Development framework for Ruby.
RSpec-1.1.5 has a ton of minor changes and bug fixes, and a few major ones.
Please see the following for more information:
http://rspec.info/rdoc/files/History_txt.html
On Sun, Sep 28, 2008 at 4:24 PM, Fernando Perez [EMAIL PROTECTED] wrote:
Thank you David,
Is there a way to skip database initialization? Because it takes too
much time to run each test. Is there a similar way to mock objects or
create objects and have them saved in memory? I don't understand
On Mon, Sep 29, 2008 at 5:10 AM, Fernando Perez [EMAIL PROTECTED] wrote:
Is there a way to skip database initialization? Because it takes too
much time to run each test.
So do you handle data inside the testing environment. Let's say: Given
there are 2 products available on the site.
On Mon, Sep 29, 2008 at 6:35 AM, Juanma Cervera [EMAIL PROTECTED] wrote:
Thanks Craig, but I think I don't understand completely.
current_user is a helper method provided by the plugin
restful_authentication
to access the @current_user variable as I understand.
It is defined in
On Sun, Sep 28, 2008 at 10:59 PM, Nick Hoffman [EMAIL PROTECTED] wrote:
On 2008-09-28, at 17:20, Nick Hoffman wrote:
431 it 'should hide the map filter errors div' do
432 do_xhr @xhr_params
433 response.should have_rjs
434 # response.should
On Sun, Sep 28, 2008 at 6:54 PM, Ashley Moran
[EMAIL PROTECTED] wrote:
Hi
I've been using the Twitter gem, but I discovered it loads ActiveSupport,
which meddles with Kernel#require and generally causes me confusion and
pain. I don't need Twitter loaded for my specs, currently I'm doing
On Sun, Sep 28, 2008 at 3:54 PM, Pat Maddox [EMAIL PROTECTED] wrote:
Tim Harper [EMAIL PROTECTED] writes:
I was getting a little tired of adding 2 plugins every time I create a
new rails project, so I just built an rspec-rails gemspec, and it
works perfectly well. Does anybody know why there
On Mon, Sep 29, 2008 at 10:51 AM, Nick Hoffman [EMAIL PROTECTED] wrote:
On 2008-09-29, at 07:58, David Chelimsky wrote:
On Sun, Sep 28, 2008 at 10:59 PM, Nick Hoffman [EMAIL PROTECTED]
wrote:
On 2008-09-28, at 17:20, Nick Hoffman wrote:
431 it 'should hide the map filter errors div
On Mon, Sep 29, 2008 at 2:52 PM, Scott Taylor
[EMAIL PROTECTED] wrote:
I'm trying to write a spec asserting that no layout should be used in a
controller. My spec currently looks like this:
it should render with no layout do
controller.expect_render.with(hash_including(:layout =
On Mon, Sep 29, 2008 at 3:30 PM, Scott Taylor
[EMAIL PROTECTED] wrote:
On Sep 29, 2008, at 3:54 PM, David Chelimsky wrote:
On Mon, Sep 29, 2008 at 2:52 PM, Scott Taylor
[EMAIL PROTECTED] wrote:
I'm trying to write a spec asserting that no layout should be used in a
controller. My spec
On Mon, Sep 29, 2008 at 3:51 PM, Scott Taylor
[EMAIL PROTECTED] wrote:
On Sep 29, 2008, at 4:36 PM, David Chelimsky wrote:
On Mon, Sep 29, 2008 at 3:30 PM, Scott Taylor
[EMAIL PROTECTED] wrote:
On Sep 29, 2008, at 3:54 PM, David Chelimsky wrote:
On Mon, Sep 29, 2008 at 2:52 PM, Scott
On Mon, Sep 29, 2008 at 9:30 PM, Donald French [EMAIL PROTECTED] wrote:
I have been using ZenTest AutoTest with the previous version of rspec-rails.
When I updated to 1.1.5 the autotest just hangs. Are these compatible?
Use either the installed autospec (not autotest) or script/autospec
On Tue, Sep 30, 2008 at 8:02 AM, Ashley Moran
[EMAIL PROTECTED] wrote:
Begin forwarded message:
Use either the installed autospec (not autotest) or script/autospec
commands (for rails apps).
http://rspec.info/rdoc/files/History_txt.html
Cheers,
David
Hmmm, when I run autospec, all I
On Tue, Sep 30, 2008 at 8:15 AM, Ashley Moran
[EMAIL PROTECTED] wrote:
On 30 Sep 2008, at 14:06, David Chelimsky wrote:
I just noticed that too on a new project. It's the spec_helper that's
causing the trouble, so it needs to be ignored. Put this in a
.autotest file at the root of your
On Tue, Sep 30, 2008 at 8:59 AM, aidy lewis [EMAIL PROTECTED] wrote:
Hi,
We are receiving an ArityMismatchError when we feel we have a valid RegEx
error
C:/svnprojects/olc_stories/lib/framework/common_steps/verification_steps.rb:48:in
`/verify the email with the subject of '[\w\x2E\-\s]*'/'
On Tue, Sep 30, 2008 at 9:55 AM, Luke Melia [EMAIL PROTECTED] wrote:
On Sep 15, 2008, at 4:35 PM, Pat Maddox wrote:
I don't think you're really supposed to mock or stub when using cucumber.
We need to stub time in some of our scenarios, which exist to to verify
behavior over time. We're
On Tue, Sep 30, 2008 at 10:26 AM, Scott Taylor
[EMAIL PROTECTED] wrote:
On Sep 30, 2008, at 11:06 AM, David Chelimsky wrote:
On Tue, Sep 30, 2008 at 9:55 AM, Luke Melia [EMAIL PROTECTED] wrote:
On Sep 15, 2008, at 4:35 PM, Pat Maddox wrote:
I don't think you're really supposed to mock
On Tue, Sep 30, 2008 at 10:18 PM, Andy Freeman [EMAIL PROTECTED] wrote:
David Chelimsky wrote:
On Tue, Sep 30, 2008 at 7:59 AM, Zach Dennis [EMAIL PROTECTED]
wrote:
On Tue, Sep 30, 2008 at 8:41 AM, Andy Freeman [EMAIL PROTECTED] wrote:
Are you willing to provide a simple example?
I'm using
On Tue, Sep 30, 2008 at 9:38 AM, Ben Mabey [EMAIL PROTECTED] wrote:
David Chelimsky wrote:
On Tue, Sep 30, 2008 at 7:59 AM, Zach Dennis [EMAIL PROTECTED]
wrote:
Also, a nice thing about RSpec is that when you do describe an actual
object, ie: describe Foo, you can determine this by asking
On Wed, Oct 1, 2008 at 2:33 AM, Neil Cauldwell [EMAIL PROTECTED] wrote:
Ben Mabey wrote:
Pat Maddox wrote:
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Also, what is your data? The
On Wed, Oct 1, 2008 at 7:54 AM, Ashley Moran
[EMAIL PROTECTED] wrote:
Hi
The discussion among me, David, Michael, and Pat got me thinking.
Specifically this by Michael:
Just my $0.02, but I really like specs to be treated as specifications for
what SHOULD be happening, not pretending other
On Wed, Oct 1, 2008 at 10:32 AM, Pat Maddox [EMAIL PROTECTED] wrote:
Ashley Moran [EMAIL PROTECTED] writes:
On 1 Oct 2008, at 15:23, Pat Maddox wrote:
I think this may be a bug that I introduced recently. Fortunately I
also think someone already wrote a patch :) Check out
On Wed, Oct 1, 2008 at 8:38 PM, Mark Wilden [EMAIL PROTECTED] wrote:
On Wed, Oct 1, 2008 at 6:22 PM, Ashley Moran [EMAIL PROTECTED]
wrote:
On Oct 01, 2008, at 8:17 pm, Mark Wilden wrote:
Sounds like future-proofing to me. In the case of libraries, that can be
a good thing. For application
On Thu, Oct 2, 2008 at 5:20 PM, Peter Degen-Portnoy
[EMAIL PROTECTED] wrote:
Hi Folks,
I have a problem that I have been able to isolate into a small test
application.
The problem seems to be that when I set an expectation on the number of
times a method will be called in one describe
The RSpec Development is happy to announce the release of rspec-1.1.7
and rspec-rails-1.1.7
This is recommended for anyone who upgraded to 1.1.5 earlier this week
as it addresses bugs that were introduced by that release:
== rspec and rspec-rails 1.1.7
* fixed dependency problem introduced in
On Fri, Oct 3, 2008 at 12:28 PM, Zach Dennis [EMAIL PROTECTED] wrote:
David,
Can you tag this in git or push your git tags if you have done so
locally ? Thanks,
The tags have already been pushed - I can see them on github, can you not?
Zach
On Fri, Oct 3, 2008 at 9:14 AM, David Chelimsky
On Fri, Oct 3, 2008 at 1:09 PM, Zach Dennis [EMAIL PROTECTED] wrote:
On Fri, Oct 3, 2008 at 2:02 PM, David Chelimsky [EMAIL PROTECTED] wrote:
On Fri, Oct 3, 2008 at 12:28 PM, Zach Dennis [EMAIL PROTECTED] wrote:
David,
Can you tag this in git or push your git tags if you have done so
locally
On Sat, Oct 4, 2008 at 11:54 AM, Fernando Perez [EMAIL PROTECTED] wrote:
How do you go plugin-less for RSpec? The plugins require you to generate
some files, so how do you do that without a plugin? Is there still a
rake task in the gem to generate the required files?
I'll post this up on the
On Sat, Oct 4, 2008 at 12:01 PM, Fernando Perez [EMAIL PROTECTED] wrote:
Cool.
However what happens when my app is currently using the plugin version,
is it easy to migrate to the gem? Should I regenerate the files? I guess
there is somewhere a line that says to rspec look into
On Sat, Oct 4, 2008 at 1:06 PM, Luis Lavena [EMAIL PROTECTED] wrote:
On Sat, Oct 4, 2008 at 2:58 PM, David Chelimsky [EMAIL PROTECTED] wrote:
On Sat, Oct 4, 2008 at 11:54 AM, Fernando Perez [EMAIL PROTECTED] wrote:
How do you go plugin-less for RSpec? The plugins require you to generate
some
801 - 900 of 2985 matches
Mail list logo