Jeremy Hageman wrote:
As someone relatively new to rspec, I am interested in hearing the
wisdom of the group in the area of using a fixture replacement gem
(such as machinist or factory girl) instead of mocking the model. To
me it seems that using a fixture replacement, instead of a mock, would
c
Jeremy Hageman wrote:
Scott thanks for the insight.
On Sep 1, 9:16 pm, Scott Taylor wrote:
Most mocks used in a rails project server neither of these purposes.
Primarily they are used for speed - which so far has been the primary
trade off with using a fixture replacement (such as
On Sep 17, 2009, at 3:13 PM, Chris Adams wrote:
Hi there,
Forgive the simple sounding question, but I'm struggling to
understand how to spec helper methods in Rails work, and I'm having
no joy, and after spending far, far too long staring at broken code,
I'm hoping someone on the list ca
Hub
5 Torrens Street
London
EC1V 1NQ
email: ch...@stemcel.co.uk
web: www.stemcel.co.uk
twitter:chris_d_adams
skype: chris.d.adams
mob: 07974 368 229
tel: 0207 558 8971
2009/9/17 Scott Taylor
On Sep 17, 2009, at 3:13 PM, Chris Adams wrote:
Hi there,
Forgive the simple sounding question, bu
On Oct 12, 2009, at 9:14 PM, David Chelimsky wrote:
On Oct 12, 2009, at 9:37 PM, Sam Woodard wrote:
I have an interesting setup: I am using rspec for mocking but I have
mocha installed which give me access to any_instance, expects,
etc. The
problem that I am having is that I want to stub
On Oct 14, 2009, at 3:36 PM, Joaquin Rivera Padron wrote:
hello there,
how do you tipically spec private methods? The thing is Ï have
something like this:
def some_method
complex_method + other_complex_methods
end
private
def complex_method...
def other_complex_methods ...
and the two
On Oct 14, 2009, at 4:24 PM, Nicolás Sanguinetti wrote:
On Wed, Oct 14, 2009 at 5:49 PM, Scott Taylor
wrote:
On Oct 14, 2009, at 3:36 PM, Joaquin Rivera Padron wrote:
hello there,
how do you tipically spec private methods? The thing is Ï have
something
like this:
def some_method
On Nov 23, 2009, at 9:35 PM, David Chelimsky wrote:
> On Fri, Nov 20, 2009 at 9:06 PM, Bogdan Dumitru wrote:
> The syntax for use_fakefs changed in version 0.2.1 and the fixtures
> for rspec are generating errors, but it can be solved easily.
> Have to change ...
> describe "smth" do
> extend
On Nov 23, 2009, at 11:12 PM, David Chelimsky wrote:
>
>
> On Mon, Nov 23, 2009 at 9:36 PM, Scott Taylor wrote:
>
> On Nov 23, 2009, at 9:35 PM, David Chelimsky wrote:
>
>> On Fri, Nov 20, 2009 at 9:06 PM, Bogdan Dumitru wrote:
>> The syntax for use_fakefs ch
On Feb 22, 2010, at 1:54 PM, Matt Riches wrote:
> I am hoping that this is an easy question to answer!
>
> I have 2 models, related via an association model, such that models a and b
> use has_many to refer to each other, and also the association.
has_many :through with an extra table, or HABT
On Feb 22, 2010, at 6:07 PM, Rick DeNatale wrote:
> I thought that it might be worth starting a discussion about the best
> approaches to deal with spec'ing what's becoming more and more common
> in apps using active record.
>
> It started with named scopes, now we have arel, and the old find ca
Has there been any development on shared helpers / it_should_behave_like
feature in rspec?
I forget the reasons, but I remember a patch for something like this was
rejected:
it_should_behave_like "an_entry", :locals => { :entry => Entry.new }
OR:
before do
@entry = Entry.new
On Mar 11, 2010, at 1:26 AM, Nicolás Sanguinetti wrote:
> We have an app that has "extensions" that are built as rails engines.
> Each engine needs some code in the controllers, which we solved as
> "include this module, call a method". In order to test it, though, we
> don't want to "copy" the t
On Mar 11, 2010, at 1:26 AM, Nicolás Sanguinetti wrote:
> We have an app that has "extensions" that are built as rails engines.
> Each engine needs some code in the controllers, which we solved as
> "include this module, call a method". In order to test it, though, we
> don't want to "copy" the t
On Apr 16, 2010, at 8:15 AM, Nicholas Wieland wrote:
> Hi *,
> I'm trying to write a plugin to integrate my SSO server into my rails app.
> I'm finding the whole process quite difficult, I'm still blocked at
> configuring rspec, and the lack of documentation is not helping.
> I've put this insid
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. Talking off list to David C, he suggested that it might
On May 14, 2010, at 8: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.
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). I
On May 26, 2010, at 2:07 PM, Nadal wrote:
> I wrote following code and it did not work.
>
>
> describe User do
> it { should validate_presence_of(:email) }
> pending "should raise an error when email is blank and record is
> saved with false option"
> end
>
>
> Then I put pending inside it li
I have some javascript specs (using the jspec javascript framework) in my rails
3 project, living in the spec/javascript directory. How can I exclude the ruby
files in the jspec project from being run when I run "rake spec"?
RSpec::Core::RakeTask used to take a file list (which was usually gen
ote:
> On Nov 6, 2010, at 5:04 PM, Scott Taylor wrote:
>
>> I have some javascript specs (using the jspec javascript framework) in my
>> rails 3 project, living in the spec/javascript directory. How can I exclude
>> the ruby files in the jspec project from being run wh
Probably manually rescuing your debugger call would work:
begin
debugger
rescue Exception
end
Scott
On Feb 3, 2011, at 9:18 AM, David Kahn wrote:
> I am curious as with Test::Unit I could go into the debugger and stay all day
> inside of a test and make all kinds of errors without a problem
On Feb 3, 2011, at 12:04 PM, David Kahn wrote:
>
>
> On Thu, Feb 3, 2011 at 10:32 AM, David Chelimsky wrote:
> On Feb 3, 2011, at 9:28 AM, David Kahn wrote:
>
>> On Thu, Feb 3, 2011 at 8:48 AM, Scott Taylor wrote:
>>
>> Probably manually rescuing your debug
Is #unstub being called at any point?
Scott
On Feb 16, 2011, at 12:54 AM, Fearless Fool wrote:
> I'm looking at an example where a stub seems to work sometimes, and
> sometimes appears to become "unstubbed". I haven't boiled it down to a
> minimal example, but it goes something like this:
> --
Welcome everyone (and double welcome to Pat)! Thanks for your hard work, guys!
Cheers,
Scott Taylor
smtlaissezfaire
On Mar 1, 2011, at 8:46 AM, David Chelimsky wrote:
> I'm very pleased to announce the reformation of a core RSpec development team:
>
> Chad Humphries, a.k.a.
How are you requiring FakeFS?
Scott
On Mar 13, 2011, at 10:30 AM, Nicholas Wieland wrote:
> Hi *, for some reasons I'm not able to fake writing on the FS during specs
> with carrierwave, someone managed to make it work ?
> I'm currently trying to use FakeFS, but apparently I'm not even able to
http://www.ruby-doc.org/core/classes/File.html#M24
>
> On Mar 13, 2011, at 2:37 PM, Nicholas Wieland wrote:
>
>> hi Scott, thanks for the answer.
>>
>> https://gist.github.com/868356
>>
>> I'm not even calling it inside the specs.
>>
- this question has been
asked numerous times, in various forms. If none of those applies,
let us know how it is different.
Cheers,
Scott Taylor
On Jul 16, 2007, at 8:43 PM, Ryan Tucker wrote:
>
>
> Thank you in advance for your help. I am relatively new to both Rails
> an
d matter to deal with because
of Rails complications.
As for mocks - you might want to google Martin Fowlers article about
how "Mocks aren't stubs". Every mock that receives an unexpected
message (i.e. method call) will raise a MockExpectationError. This
is a sign that y
On Sep 27, 2008, at 8:02 AM, Daniel Lucraft wrote:
Hi all
(I tried to send this question to the list a few hours ago, but it
seems to have not got through. If it did sorry for the duplication.)
Does anyone have any tips or examples of how to run RSpec example
groups programmatically from with
On Sep 28, 2008, at 2:50 PM, Fernando Perez wrote:
Is there somewhere a real documentation about using Cucumber +
Webrat in
a Rails project?
For instance it seems that Cucumber doesn't understand the word
"Given"
like Story Runner does.
--
How about this?
http://github.com/aslakhelleso
On Sep 29, 2008, at 2:26 AM, Mikel Lindsaar wrote:
On Mon, Sep 29, 2008 at 12:07 PM, David Chelimsky <[EMAIL PROTECTED]
> wrote:
RSpec-1.1.5 has been released
rspec_team.should_receive(:thank_you).at_least(:once)
GmailMailer.post(email)
class GmailMailer
class << self
def post(email)
ch should pass the spec, isn't:
class AController < ApplicationController
layout nil
end
What am I doing wrong?
Best,
Scott Taylor
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
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 currently looks like this:
it "should render wi
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 Taylor
<[EMAIL PROTECTED]> wrote:
I'm trying to write
On Sep 29, 2008, at 5:02 PM, David Chelimsky wrote:
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:
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 or stub when using
cucumber.
We need to stub time in some of our scenari
On Sep 30, 2008, at 12:04 PM, Pat Maddox wrote:
Scott Taylor <[EMAIL PROTECTED]> writes:
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 th
On Oct 5, 2008, at 11:11 AM, Pat Maddox wrote:
Hey everyone,
We're doing a panel on testing at the Voices That Matter conference
(http://www.voicesthatmatter.com/ruby2008/ - you should go :). Obie
set
up a google moderator thing [1] to collect questions for the panel. I
invite you all to
On Oct 5, 2008, at 4:47 PM, Matt Wynne wrote:
On 5 Oct 2008, at 12:26, Greg Hauptmann wrote:
BankAccount.any_instance.stubs(:balance?).returns()).
Do people normal use the "any_instance.stubs" approach to stub out
existing classes already developed, as a means to minimize associated
Is this
On Oct 5, 2008, at 5:04 PM, Matt Wynne wrote:
On 5 Oct 2008, at 21:56, Scott Taylor wrote:
On Oct 5, 2008, at 4:47 PM, Matt Wynne wrote:
On 5 Oct 2008, at 12:26, Greg Hauptmann wrote:
BankAccount.any_instance.stubs(:balance?).returns()).
Do people normal use the "any_instance.
On Oct 7, 2008, at 6:02 AM, Pau Cor wrote:
Hi,
I have started writing my own generators, and I was wondering if
anyone
had any suggestions for testing them.
I know I could just run the generator in a dummy application; write my
tests; and then copy the tests back into the generator. But th
On Oct 7, 2008, at 7:04 PM, Pat Maddox wrote:
Getting the failure message:
expected redirect to "/admin/account", got redirect to "/admin/
account"
I'm on Rails 1.2.6 with edge rspec/rspec-rails. There's nothing funky
inside that I can tell, but this is my first day with the app. I
assume
On Oct 8, 2008, at 2:09 PM, Wes Gamble wrote:
All,
I have some experience with Rspec from about a year ago. At that
time, there was a gem and a plugin, and a Rspec on Rails plugin.
Should I only be using the gem?
If you're using a rails app, install the two plugins. If not, use the
g
On Oct 8, 2008, at 5:41 PM, Anita Anita wrote:
Hello,
Can I test in the spec the route taken by the redirect_to from the
controller? The URL is not controller/action.
I tried:
route_for(:controller => "signup", :action => "confirmation").should
==
"/my/set/URL" but no it absolutely wants: .
On Oct 8, 2008, at 6:26 PM, Wes Gamble wrote:
I'm trying to debug what I suspect is a case where spec_helper.rb is
not
being executed.
I put a puts statement inside the Spec::Runner.configure do |config|
block, and I can't ever see the printout.
When does spec_helper.rb get run during rspec
On Oct 8, 2008, at 7:40 PM, Wes Gamble wrote:
OK, got it.
I have a follow-up question though. If a given spec DID NOT require
spec_helper.rb, doesn't that imply that the spec would be run against
the Rails "development" environment.
Basically, the normal operation is that your spec requires
I find it sort of interesting that they are using RSpec in one of the
courses @ UC Berkley:
http://radlab.cs.berkeley.edu/wiki/Cs198
Scott
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
On Oct 10, 2008, at 2:56 AM, Mano ah wrote:
When i run a spec file i am getting the following error
D:\Diwakar\spec_diwa\spec\controllers>spec sandbox_controller_spec.rb
c:/ruby/lib/ruby/gems/1.8/gems/rspec-0.5.15/lib/spec/api/sugar.rb:
17:in
`method_
missing': undefined method `describe
On Oct 10, 2008, at 11:50 PM, Mano ah wrote:
How to solve the below error
1)
NoMethodError in 'LoginController index should get successfully'
You have a nil object when you didn't expect it!
The error occurred while evaluating nil.status
./login_controller_spec.rb:9:
2)
NoMethodError in 'Logi
On Oct 10, 2008, at 11:50 PM, Mano ah wrote:
How to solve the below error
1)
NoMethodError in 'LoginController index should get successfully'
You have a nil object when you didn't expect it!
The error occurred while evaluating nil.status
./login_controller_spec.rb:9:
2)
NoMethodError in 'Logi
On Oct 11, 2008, at 12:42 AM, Mano ah wrote:
rails 2.1.1 and rspec 1.1.8 never worked out for me
So i downgraded rails to 1.2.3.
while execiting ruby /script/generate rspec_controller MyController
it ask rails version 2.1.1.
i was getting the describe method error as mention earlier in usi
On Oct 13, 2008, at 1:54 PM, Jonathan Linowes wrote:
anyone know if/how webrat can scope a clicks_link within a selector?
eg, if I have more than one "Foo" link on a page, I want to make
sure I click the one within a specific div
I'm pretty sure clicks link can also take an id. It's not t
On Oct 15, 2008, at 4:31 PM, Nick Hoffman wrote:
Hi guys. One of my methods uses a constant in another method, like
this:
class A
def something
"foo: #{B::BAR}"
end
end
When writing the spec for A#something , how would you mock or stub
#{B::BAR}, and how would you set an expe
On Oct 16, 2008, at 4:28 PM, Ashley Moran wrote:
Hi
Hope this isn't OT. I'm currently contemplating using the Dojo[1]
JavaScript framework, and I suspect it's powerful enough that using
Cucumber features and Celerity alone will quickly leave me wanting
lower-level unit specs for the JS.
On Oct 17, 2008, at 11:42 AM, Stephen Eley wrote:
On Fri, Oct 17, 2008 at 10:54 AM, Joseph Wilk <[EMAIL PROTECTED]
> wrote:
"The dynamic nature of JavaScript makes mocking frameworks mostly
unnecessary"
A small but interesting difference from using Ruby, Rspec and its
built-in
mocking fra
On Oct 18, 2008, at 4:40 AM, Thomas Watson Steen wrote:
Hi
I'm using RSpec in with Ruby on Rails. I've made a helper module
method that generates some HTML and would like to create a rspec
test to validate this HTML. I can of cause use regex to validate it
as a string, but would much rat
On Oct 18, 2008, at 9:16 AM, Pat Maddox wrote:
Scott Taylor <[EMAIL PROTECTED]> writes:
On Oct 18, 2008, at 4:40 AM, Thomas Watson Steen wrote:
Hi
I'm using RSpec in with Ruby on Rails. I've made a helper module
method that generates some HTML and would like to create
On Oct 18, 2008, at 9:19 AM, Pat Maddox wrote:
Scott Taylor <[EMAIL PROTECTED]> writes:
As for #3, I'm
pretty sure that Ruby's method_missing allows one to raise an
exception easily. Not sure what a Javascript mocking framework would
do in this case.
I'm not sure
On Oct 18, 2008, at 10:30 AM, Stephen Eley wrote:
On Sat, Oct 18, 2008 at 12:53 AM, Scott Taylor
<[EMAIL PROTECTED]> wrote:
In Javascript, it might look more or less like this:
var old_method = obj[my_method];
my_obj[my_method] = my_return_value;
That's an interesting syntax
On Oct 19, 2008, at 12:14 PM, Pat Maddox wrote:
Scott Taylor <[EMAIL PROTECTED]> writes:
On Oct 18, 2008, at 9:19 AM, Pat Maddox wrote:
Scott Taylor <[EMAIL PROTECTED]> writes:
As for #3, I'm
pretty sure that Ruby's method_missing allows one to raise an
exception ea
On Oct 20, 2008, at 1:00 AM, Harry Bishop wrote:
Hi,
I have a controller that uses the current_user attributes to
determine
if a motion is showable. I can see the motion track through from a
fixture to the show action, but not the current_user. My rspec test
is
describe MotionsControl
On Oct 19, 2008, at 12:14 PM, Pat Maddox wrote:
BTW, Pat - Have you still been working on integrating test spy into
rspec?
Nope, I found not_a_mock [1] and it works well.
Also, relevant to the Screw.Unit and the spying threads, I've hacked
together a Javascript mocking/stubbing framewor
On Oct 22, 2008, at 9:46 AM, David Chelimsky wrote:
On Sun, Oct 19, 2008 at 9:44 PM, Scott Taylor
<[EMAIL PROTECTED]> wrote:
On Oct 19, 2008, at 12:14 PM, Pat Maddox wrote:
Scott Taylor <[EMAIL PROTECTED]> writes:
On Oct 18, 2008, at 9:19 AM, Pat Maddox wrote:
Scott Ta
On Oct 28, 2008, at 9:09 AM, Cameron Booth wrote:
Hi everybody,
New to the list, so apologies if this has been answered elsewhere,
but I didn't find it. I'm trying to build up a plugin of useful
rspec macros for rails development, eg. things like:
it_should_return_success
it_should_redir
On Oct 29, 2008, at 11:27 AM, Cameron Booth wrote:
Hi all,
So my potentially crazy but I think good idea right now is to take
the factory_girl gem and adapt it to generate stubbed models instead
of actual ActiveRecord objects that get saved to the DB. My main
reasoning there is that I li
On Oct 30, 2008, at 1:02 AM, Sebastian W. wrote:
Hello RSpec folks,
I've only been introduced to the world of mock objects since Wednesday
of last week, so go easy on me if I come off as ignorant. :P
So, I'm a big fan of testing, especially since it has really helped to
do refactoring in the p
On Oct 30, 2008, at 2:01 AM, Sebastian W. wrote:
Hi Scott,
Cool - I see what you're saying here. The only thing that I'm a bit
confused still is that it seems like, at least if your system is
starting to get larger, you'd really *want* your fast unit test to
help
you catch API changes like t
On Oct 30, 2008, at 2:14 AM, Scott Taylor wrote:
On Oct 30, 2008, at 2:01 AM, Sebastian W. wrote:
Hi Scott,
Cool - I see what you're saying here. The only thing that I'm a bit
confused still is that it seems like, at least if your system is
starting to get larger, you'd rea
On Oct 30, 2008, at 2:17 AM, David Chelimsky wrote:
On Thu, Oct 30, 2008 at 1:14 AM, Scott Taylor
<[EMAIL PROTECTED]> wrote:
On Oct 30, 2008, at 2:01 AM, Sebastian W. wrote:
Hi Scott,
Cool - I see what you're saying here. The only thing that I'm a bit
confused still is th
On Oct 30, 2008, at 2:17 AM, David Chelimsky wrote:
On Thu, Oct 30, 2008 at 1:14 AM, Scott Taylor
<[EMAIL PROTECTED]> wrote:
On Oct 30, 2008, at 2:01 AM, Sebastian W. wrote:
Hi Scott,
Cool - I see what you're saying here. The only thing that I'm a bit
confused still is th
On Oct 30, 2008, at 4:05 PM, Pat Maddox wrote:
Scott Taylor <[EMAIL PROTECTED]> writes:
Actually, I take back my previous comment. Where would you stub a
method on an object where the method *isn't* even loaded by further
(or previous) stubbing?
Any concrete examples come to
On Oct 30, 2008, at 4:05 PM, Pat Maddox wrote:
Scott Taylor <[EMAIL PROTECTED]> writes:
Actually, I take back my previous comment. Where would you stub a
method on an object where the method *isn't* even loaded by further
(or previous) stubbing?
Any concrete examples come to
On Oct 30, 2008, at 8:21 PM, Evan Dorn wrote:
I am having a very frustrating problem running specs on my current
project. When I run tests en masse with "rake spec" or with autotest,
it frequently quits without completing all the tests. It also
sometimes runs the tests in multiple batches, g
On Oct 30, 2008, at 7:52 PM, Sebastian W. wrote:
No idea why you couldn't pass a flag for regression testing:
mock(Foo, :check_methods => true)
Scott
It seems to me this way, too - though I'm obviously biased. :)
It's true that a lot of the dynamic stuff could be problematic -
what if
t
On Nov 4, 2008, at 3:46 PM, Fernando Perez wrote:
Are the docs on mock outdated? I sometimes see mock_model, and
sometimes
mock. Which one should be used?
mock_model is for ActiveRecord objects. it's just a mock() call with
a random id stub set, and a :new_record? => false
Scott
_
On Nov 11, 2008, at 3:44 PM, David Chelimsky wrote:
On Tue, Nov 11, 2008 at 2:16 PM, James B. Byrne <[EMAIL PROTECTED]
lyne.ca> wrote:
On Tue, November 11, 2008 15:05, David Chelimsky wrote:
You must have installed rspec during the short time we were using
git-submodules.
You'll want to r
On Nov 14, 2008, at 7:13 PM, Bret Pettichord wrote:
Hello. I just ran into an error I wanted to share.
The error message is below. I tracked down the error to the
following conditions:
1. I am using the new version of Watir (1.6.2)
2. This version of Watir uses the "user-choices" gem (from
On Nov 16, 2008, at 2:40 PM, Nick Hoffman wrote:
Hi guys. Occasionally, I'll want to kill a long spec process that's
running. Usually I hit CTRL+c to kill a running process, but doing
that for a running spec just causes "^C" to be printed to the
terminal, and whichever spec example was run
On Nov 20, 2008, at 2:35 PM, David Chelimsky wrote:
On Thu, Nov 20, 2008 at 12:44 PM, Ben Fyvie <[EMAIL PROTECTED]
> wrote:
We just upgraded from rspec version 1.1.4 to rspec version 1.1.11
and found
that this no longer exists:
# File lib/spec/example/example_methods.rb, line 84
def
On Nov 21, 2008, at 1:18 PM, Nick Hoffman wrote:
I'm trying to write specs for a helper method that I'm creating, but
my specs are failing to find the helper method
# app/helpers/properties_helper.rb
module PropertiesHelper
def format_utilities(utilities)
end
end
# spec/helpers/properties
On Nov 24, 2008, at 2:03 PM, Steven Rogers wrote:
I'm working on a Rails project with someone else, and getting
different results on specs. After a lot of poking around for
differences, the only thing I can find is autospec in /opt/local/bin/
autospec vs. /usr/bin/autospec Seems like a b
On Nov 25, 2008, at 1:14 PM, Mark Wilden wrote:
On Tue, Nov 25, 2008 at 10:04 AM, Matt Wynne <[EMAIL PROTECTED]>
wrote:
On 25 Nov 2008, at 17:54, Mark Wilden wrote:
On Tue, Nov 25, 2008 at 8:54 AM, Matt Wynne <[EMAIL PROTECTED]>
wrote:
Surely, as soon as they scroll off the screen, it's
On Nov 25, 2008, at 1:27 PM, Wes Gamble wrote:
Scott Taylor wrote
I'd be interested, however, in hearing about the benefits of
opening the eigenclass to define class methods (apart from ease in
searching, which may be best handled with ctags).
Grouping and private methods.
Potent
On Nov 25, 2008, at 1:27 PM, Wes Gamble wrote:
Scott Taylor wrote
I'd be interested, however, in hearing about the benefits of
opening the eigenclass to define class methods (apart from ease in
searching, which may be best handled with ctags).
Grouping and private methods.
Potent
On Nov 28, 2008, at 11:52 AM, David Chelimsky wrote:
On Thu, Nov 27, 2008 at 8:17 PM, Mark Wilden <[EMAIL PROTECTED]> wrote:
On Thu, Nov 27, 2008 at 5:57 PM, Brian Takita
<[EMAIL PROTECTED]>
wrote:
I'm wondering if this is a discussion about taste.
I think you're right. I've been using t
On Nov 29, 2008, at 2:19 PM, Brian Takita wrote:
On Fri, Nov 28, 2008 at 1:17 PM, Student <[EMAIL PROTECTED]
spring.net> wrote:
Performance is one of those nasty things that can go from being a
non-
issue to THE issue (next to correctness) in the blink of an eye.
I am
curious, however. H
On Dec 4, 2008, at 1:34 PM, Andrew Premdas wrote:
This is of topic but I have a feeling I might get some useful advice
here - hope you don't mind
I've created a rails project that I want to use as a basis for other
rails project. I was wondering if anyone had any tips on workflow
for doi
On Dec 16, 2008, at 5:17 PM, Avdi Grimm wrote:
So I was running my specs with -w the other day, and noticed a lot of
warnings being produced. Some of these appear to be coming from RSpec
internals, which is an issue in its own right but not the subject of
this email. What I'm asking about rig
On Dec 17, 2008, at 10:26 AM, Ingo Weiss wrote:
Hi all,
I am developing a rails plugin/gem with rspec. The plugin extends
ActiveRecord, so the specs basically needs a complete environment
with database access to run. What is a good way to set this up in a
way that can be bundled with the
On Dec 30, 2008, at 2:02 PM, Peter Jaros wrote:
On Tue, Dec 30, 2008 at 12:50 PM, s.ross wrote:
This question has, I'm sure, been asked and answered hundreds of
times, but
I was unable to turn up anything in Google. Here's the issue: I
have some
code in a Rails app in the lib/ directory
Ivor Paul wrote:
Hi Guys
I am really having incredible issues with this error
i...@theluggage:~/workspace/talkies$ rake db:migrate
(in /home/ivor/workspace/talkies)
/usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/options.rb:229:in
`files_to_load': File or directory not found: db:migra
Ivor Paul wrote:
Hi Guys
I am really having incredible issues with this error
i...@theluggage:~/workspace/talkies$ rake db:migrate
(in /home/ivor/workspace/talkies)
/usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/options.rb:229:in
`files_to_load': File or directory not found: db:migra
Matt Wynne wrote:
On 7 Jan 2009, at 11:46, aslak hellesoy wrote:
On Wed, Jan 7, 2009 at 10:31 AM, Colin Jack
wrote:
Hi,
Small question on performance. I've just run the CS example provided
with Cucumber and it took about 45-50 seconds before the first output
appeared in the console, bu
On Jan 14, 2009, at 12:23 PM, Sebastian W. wrote:
Hello RSpec forum,
So...I realize this is a bit of a crazy question, but I wanted to
throw
it out there to see what answers came back: is there any way to
start an
"interactive Cucumber" session similar to irb?
For example:
bash> crb
Give
On Jan 14, 2009, at 3:05 PM, Matt Wynne wrote:
I got spec_server working today, and was literally ecstatic about
the speed of response from running a spec. Yelps and all-sorts, very
un-British, I can tell you ;)
However I'm starting to notice that it doesn't seem to be picking up
changes
On Jan 14, 2009, at 6:04 PM, Sebastian W. wrote:
Aslak Hellesøy wrote:
On Wed, Jan 14, 2009 at 9:55 PM, Sebastian W.
wrote:
The :line suffix tells cuke to run only the scenario on that
particular
line.
http://wiki.github.com/aslakhellesoy/cucumber/running-features
cucumber --help
Asla
On Jan 14, 2009, at 6:10 PM, Matt Wynne wrote:
On 14 Jan 2009, at 20:17, Mark Wilden wrote:
On Wed, Jan 14, 2009 at 12:05 PM, Matt Wynne
wrote:
I got spec_server working today, and was literally ecstatic about
the speed of response from running a spec. Yelps and all-sorts,
very un-Brit
s.ross wrote:
On Jan 15, 2009, at 7:24 AM, Mike Gaffney wrote:
s.ross's email about Screw.Unit brought prompted me to ask this
question:
1) What do you use for Javascript Unit testing?
I've tried jsspec and Screw.Unit and so far I'm thinking Screw.Unit is
better suited to what I'm doing. I
On Jan 16, 2009, at 2:38 PM, Fernando Perez wrote:
Hi,
I just run in the following problem when starting a Rails app on my
production server:
You have rspec rake tasks installed in
/home/thomas/rails_apps/video_on_demand/lib/tasks/rspec.rake,
but rspec can not be found in vendor/gems, vend
1 - 100 of 486 matches
Mail list logo