ld I tell, from the outside of this
class, that it has been invoked, and whether it has behaved as expected?
Is there a collaborator on this class that it will send a message to?
Is there some state that it will set on this class that I can read?
cheers,
Matt
--
http://mattwynne.net || h
l contemplate 3), which could make life easer. Thanks!
Could you give both errors a common base class, then assert on that?
cheers,
Matt
--
http://mattwynne.net || https://twitter.com/mattwynne ||
http://the-cucumber-book.com || http://bddkickstart.com ||
http://www.relishapp.com
__
l answer all of
these questions any many many more.
http://pragprog.com/book/achbd/the-rspec-book
cheers,
Matt
--
Freelance programmer & coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book
Teacher, http://bddkickstart.com
Founder, http://ww
ng I'm describing in this spec), then use #context inside
that to explain the different hoops I'm making that thing jump through in my
examples.
cheers,
Matt
--
Freelance programmer & coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book
Founder, http://www.relishapp
best for this. It's fast and you never see it.
cheers,
Matt
--
Freelance programmer & coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book
Founder, http://www.relishapp.com/
Twitter, https://twitter.com/mattwynne
___
rspec-u
les of code where
there's more risk that something could get broken in the future, let us see
that and we can probably give you more useful advice.
>
> --
> Posted via http://www.ruby-forum.com/.
> ___
> rspec-users ma
nerated view specs
> (Jonathan del Strother)
>
> ___
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
Maybe you need some tests for this email template ;)
cheers,
Matt
--
Freel
27;m
>> using the new 'where' API and this probably will keep changing each new AR
>> release...
> This is exactly why I like to wrap finders in domain-specific methods on the
> model :)
>> Also, in Grails case, the mocked domain classes are maintained alongside
Hmm, that's not exactly what I was thinking of... I don't mean that there
should be no arguments at all, but that the arguments should _not_ be of a
certain match.
On Tuesday, April 10, 2012 8:48:37 PM UTC-7, Justin Ko wrote:
>
>
> On Apr 9, 2012, at 2:41 PM, Matt Hauck wr
Is there a way to specify a message expectation on an object to occur
_without_ a particular argument?
There is a particular function, which in some special circumstance takes a
unique argument, but in normal circumstances does not take this unique
argument. I want to say something like this:
till persists, please email supp...@relishapp.com and we can sort it out
offline.
cheers,
Matt
--
Freelance programmer & coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book
Founder, http://www.relishapp.com/
Twitter, https://twitter.com/mattwynne
n in the
> relations table. I tried explicitly setting it, as in:
>
>post = mock_model("Post", :base_class => "Post")
>
> but the error was the same.
>
> For all the reasons that DC espouses, I'd love to mock references to the
> polymorphic
On 7 Mar 2012, at 18:26, Zach Dennis wrote:
> Matt,
>
> I have typically done what you are already doing, but I am also
> interested in the answer you seek. Another idea might be something
> like since #do-stuff would need to be invoked with a block:
>
> expect(thing, :d
On 7 Mar 2012, at 18:16, David Chelimsky wrote:
> On Wed, Mar 7, 2012 at 11:56 AM, Matt Wynne wrote:
>>
>> On 7 Mar 2012, at 11:39, Morten Møller Riis wrote:
>>
>> On Mar 7, 2012, at 8:22 AM, Matt Wynne wrote:
>>
>>
>> Hi all,
>>
>>
On 7 Mar 2012, at 15:12, Ken Chien wrote:
> Hi Matt,
> On Wed, Mar 7, 2012 at 2:22 AM, Matt Wynne wrote:
> Hi all,
>
> I'm spec'ing a method that yields a value. Right now, I spec it like this:
>
> result = nil
> thing.do_stuff { |value| re
On 7 Mar 2012, at 11:39, Morten Møller Riis wrote:
> On Mar 7, 2012, at 8:22 AM, Matt Wynne wrote:
>
>> Hi all,
>>
>> I'm spec'ing a method that yields a value. Right now, I spec it like this:
>>
>> result = nil
>> thing.do_s
ield_value(expected)
Is there anything built into RSpec to let me do this? If not, how do other
people test yields?
cheers,
Matt
--
Freelance programmer & coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book
Founder, http://www.relishapp.com/
Twitter, https://twitter
or
> un-pragmatic. I just think that if there's another way to get at that
> feature, rspec-mocks is better off without it.
^ Yep, what he said ^
cheers,
Matt
--
Freelance programmer & coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book
Founder, http://www.relishapp.c
On 16 Feb 2012, at 12:21, David Chelimsky wrote:
> On Thu, Feb 16, 2012 at 4:17 AM, Matt Wynne wrote:
>>
>> On 14 Feb 2012, at 20:44, Justin Ko wrote:
>>
>>
>> On Feb 14, 2012, at 9:23 AM, David Chelimsky wrote:
>>
>> On Tue, Feb 14, 2012 at 9:
but you can minimize that by using transaction by default, and
>> specifying truncation for in-browser scenarios (which are already far
>> slower than will be impacted by truncation).
>
> cucumber-rails has good examples on how to set this up in RSpec:
> ht
to help guide teams who
want to do this. I'd suggest the material in there would help you, particularly
the chapters on using Capybara (which wraps Selenium Webdriver).
[1] http://pragprog.com/book/hwcuc/the-cucumber-book
cheers,
Matt
--
Freelance programmer & coach
Author, http://pragpr
sistance.
> A part of these damages may be absorbed by it's armor.
> So, what could my specs be with that? I really can't start… :(
Have you started to design a domain model for this? Could we see a picture?
cheers,
Matt
--
Freelance programmer & coach
Author, http://
you're trying to introduce your mock into the stuff that happens in
the forked process, which isn't going to work.
cheers,
Matt
--
Freelance programmer & coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book (with Aslak Hellesøy)
Founder, http://relishapp.com
+44(0)
setup?
>
> You can always extract big setup to some helper methods that set things up
> for you. All of us do this more than we'd like to admit. But it always ends
> up biting you in the end.
>
> HTH,
> David
>
> ___
> rspec-users mailing list
&g
rn(
> double('endkey').tap {|endkey|
>endkey.should_receive(:endkey).with(['0']).and_return(
> double('limit').tap {|limit|
>limit.should_receive(:limit).with(2).and_return([@exam1, @exam2])
> }
>)
>
sier to test.
Steve Klabnik has been writing about their application in the Ruby / Rails
world recently[3]
[1] http://martinfowler.com/eaaDev/PassiveScreen.html
[2] http://www.objectmentor.com/resources/articles/TheHumbleDialogBox.pdf
[3] http://blog.steveklabnik.com/2011/09/06/the-secret-to-rails-oo
that makes me go "eww". And makes
> all the RSpec readibility go out the window. Is there something I should be
> doing with a custom matcher or something to test for case-indifferent text,
> ignore whitespace and \n, and be quote indifferent?
>
> Thanks.
>
like this near the top:
Bundler.require(:default, Rails.env) if defined?(Bundler)
That's the magic that tells Bundler to require all the plugins for the test
environment when you run the tests. You'll need to stick something like that
into your Rails 1 app.
One other pro
s.url_helpers in both the model and the example group.
> Obviously, that's not ideal, because it's only necessary for the specs to
> work. Is there any other solution?
>
> https://gist.github.com/1275799
I don't know about anyone else, but I can't see that gi
____
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
cheers,
Matt
--
Freelance programmer & coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book (with Aslak Hellesøy)
Founder, http:
eel free to chime in too. :-)
>
> [1] https://github.com/pivotal/selenium/blob/master/lib/selenium/wait_for.rb
> [2] https://gist.github.com/1228927
cheers,
Matt
--
Freelance programmer & coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book
On 20 Sep 2011, at 23:38, Alex Chaffee wrote:
> On Tue, Sep 20, 2011 at 4:55 AM, Matt Wynne wrote:
>> Thanks for all the ideas. I just rolled my own which expects a block with an
>> assertion in it:
>
> I love the language!
>
>eventually { white.should be_blac
/lib/selenium/wait_for.rb
>
> (Maybe I should put it in Wrong.)
>
> - A
>
> On Tue, Sep 13, 2011 at 3:56 AM, Matt Wynne wrote:
>> Hi all,
>> In GOOS[1] they use an assertion called assertEventually which samples the
>> system for a success state until a certain time
capybara has wait_until { } but that's fairly rudimentary - the failure message
isn't very helpful. Is there anything else already out there?
[1] http://www.growing-object-oriented-software.com/
cheers,
Matt
--
Freelance programmer & coach
Author, http://pragprog.com/book/hwcuc/the-cucum
On 7 Sep 2011, at 07:53, Sidu Ponnappa wrote:
>
> On 7 September 2011 11:09, Justin Ko wrote:
>>
>>
>> On Tue, Sep 6, 2011 at 9:40 PM, slavix wrote:
>>>
>>> Hello,
>>> Is there any way to test model inheritance in spec?
>>>
>>> something like..
>>> it { ChildModel.should < ParentModel }
>
On 9 Aug 2011, at 13:11, David Chelimsky wrote:
> On Aug 9, 2011, at 2:00 AM, Chris Mear wrote:
>
>> On 9 Aug 2011, at 01:02, David Chelimsky wrote:
>>
>>> On Aug 8, 2011, at 6:00 PM, Matt Wynne wrote:
>>>
>>>> I expected to be
rtion method that will assert for
redirect routing configuration. Did I miss it?
Do I need to spec this with a request spec instead?
cheers,
Matt
--
Freelance programmer & coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book (with Aslak Hellesøy)
Founder, http://relishapp.com
+44(0)7974
:selenium do |app|
Capybara::Selenium::Driver.new(app, :browser => :chrome)
end
[1] https://github.com/jnicklas/capybara
cheers,
Matt
--
Freelance programmer & coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book (with Aslak Hellesøy)
Founder, http://relishapp.com
+44(0)79744
t available
in a describe block, or use RSpec's config.extend method to do that
automatically.
Does that help?
cheers,
Matt
--
Freelance programmer & coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book (with Aslak Hellesøy)
Founder, http://relishapp.com
+44(0)7974430184 |
Both the
Feathers book and the Freeman / Pryce book will teach you how to do that.
cheers,
Matt
--
Freelance programmer & coach
Author, http://pragprog.com/books/hwcuc/the-cucumber-book (with Aslak Hellesøy)
Founder, http://relishapp.com
+44(0)7974430184 | http://twitter.com/mattwynne
___
like this?
cheers,
Matt
m...@mattwynne.net
07974 430184
[1]
https://www.destroyallsoftware.com/screencasts/catalog/fast-tests-with-and-without-rails
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
On 15 Jun 2011, at 13:47, David Chelimsky wrote:
> On Jun 15, 2011, at 7:29 AM, Matt Wynne wrote:
>
>> Hi,
>>
>> I have an idea for a tool I want to build. In a Cucumber Before() block, I
>> can say:
>>
>> Before do |scenario|
>> puts scenario.
to do something similar in an RSpec
before block, or do I need to delve into writing a formatter?
cheers,
Matt
m...@mattwynne.net
07974 430184
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
r RSpec tests.
In the case of `rspec spec` the `spec` part is the folder where you want the
`rspec` program to look for tests to run.
Does that make more sense now?
cheers,
Matt
--
Freelance programmer & coach
Founder, http://relishapp.com
+44(0)7974430
behaviour of that object.
Make sense?
>
> Thanks!
>
> Ken
> ___
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
cheers,
Matt
m...@mattwynne.net
07974 430184
_
s in your step definitions. You can also use Ruby's own built-in
assertions from the Test::Unit::Assertions namespace.
cheers,
Matt
--
Freelance programmer & coach
Founder, http://relishapp.com
+44(0)7974430184 | http://twitter.com/mattwynne
Chris Mear wrote in post #996461:
> On 3 May 2011, at 15:05, Matt S. wrote:
>
>>>> @asset.build_owner
>> Here is the rendered content:
>>>
>> a lot about other things!
>>
>> If you want to see everything you can do a 'git clone
>>
Chris Mear wrote in post #996234:
> On 2 May 2011 00:58, Matt S. wrote:
>> accepts_nested_attributes_for.)
>> before(:each) do
>> end
>> <%= f.fields_for :owner do |owner_fields| %>
>>
>> class AssetController < ApplicationController
>> def ne
of this on the web and have tried about everything I
can think of, but I still can't get view specs containing nested model
forms to pass, using fields_for on models with
accepts_nested_attributes_for.)
Much thanks!!!
Matt Smith
#spec/views/assets/new.html.erb_spec.rb
describe "assets/ne
ment is calling the #text method that
we've defined.
This is such a common pattern, that in RSpec 2, David introduced #let blocks,
which let you refactor the above code to look like this:
describe Dimension do
let(:text) { "string here" }
ware, Guided by Tests" (GOOS) where they talk about this in
detail, as well as many other very useful testing techniques. The examples are
in java, but the design principles apply equally to Ruby code.
>
> --
> Posted via http://www.ruby-forum.com
predicate [1] to Object that
>>> lets you specify that an object is in a collection:
>>
>>> 4.in?([2,3,4])
>>
>>> Also, I'm not sure if I'd want this to be a matcher extension or something
>>> built into rspec core. I'm open to ideas though. Anybody else?
>>
>>&g
9022, 1045307475 ].collect { |a| a.to_s( 36 )
> }.join( " " )
> Nicholas Wieland (ngw)
> n...@nofeed.org
> http://www.nofeed.org
>
> ___
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/m
Matt S. wrote in post #991032:
>> In similar view specs, I've stubbed #owner_attributes= on the 'assets'
>> mock. I think Rails' nested form/assignment implementation does a
>> check on the existence of this method to make sure that the Asset
>> model d
Chris Mear wrote in post #990804:
> On 4 April 2011 02:00, Matt S. wrote:
>> let(:owner) { mock_model("Owner").as_new_record.as_null_object }
>> assert_select "input#asset_name", :name => "asset[name]" # passes
>> <%= f.label :name %
For some reason I can't figure out how to make the fields_for tags
render in the trivial example below; however, it works in the browser.
What does #build_association do that my stubbed method does not
replicate? (Or is that even the issue?)
I appreciate the insight. Thanks! Matt Smith
1/lib/rspec/core/runner.rb:46:in
> `run'
> from
> /Library/Ruby/Gems/1.8/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb:10:in
> `autorun'
> from /Library/Ruby/Gems/1.8/bin/rspec:19
> rake aborted!
> ___
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
cheers,
Matt
m...@mattwynne.net
07974 430184
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
tml
>
> What do you think?
Why not just use Cucumber?
>
> Best regards!
>
> Rodrigo.
>
> ___
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
cheers,
Matt
m...@mattwynne.net
07974 430184
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
topic (http://
> jakescruggs.blogspot.com/2007/03/mockingstubbing-partials-and-
> helper.html), but it seems that this is not valid anymore for Rails 3
> as there is no @controller.template.
>
> How do I stub that method?
>
> Kai
> __
lman/listinfo/rspec-users
>
>
> ___
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
> ___
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
cheers,
Matt
m...@mattwynne.net
07974 430184
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
n quite easily write your own test spy for
the odd occasion when it seems necessary:
class FakeExternalService
attr_reader :who_was_published
def publish_user_activation(user)
@who_was_published = user
end
end
> ___
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
cheers,
Matt
m...@mattwynne.net
07974 430184
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
latest versions of JSpec and Ruby installed. How can I use
>> the spec command? Not sure what to put in my PATH environment variables.
>>
>> Thanks!
>
> I mean Rspec, not Jspec
It does help if you use the right words for things ;)
Since RSpec 2.0, the binary comman
It might
need some tweaks.
>
> --
> Avdi Grimm
> http://avdi.org
> ___
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
cheers,
Matt
m...@mattwynne.net
07974 430184
___
rs
On 6 Mar 2011, at 10:30, Hedge Hog wrote:
> On Sun, Mar 6, 2011 at 12:27 AM, Matt Wynne wrote:
>>
>> On 5 Mar 2011, at 12:06, Hedge Hog wrote:
>>
>>> On Fri, Mar 4, 2011 at 8:12 PM, Matt Wynne wrote:
>>>>
>>>> On 4 Mar 2011, at 05:45,
On 5 Mar 2011, at 12:06, Hedge Hog wrote:
> On Fri, Mar 4, 2011 at 8:12 PM, Matt Wynne wrote:
>>
>> On 4 Mar 2011, at 05:45, Hedge Hog wrote:
>>
>>> Hi,
>>> I'm struggling with something that seems to be simple, and I've not
>>>
tp://wiki.hedgehogshiatus.com
> ___
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
cheers,
Matt
m...@mattwynne.net
07974 430184
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
he data.
Have a look at log/test.log and you should see some SQL statements running.
>
> --
> Posted via http://www.ruby-forum.com/.
> ___
> rspec-users mailing list
> rspec-users@rubyforge.org
>
;> from first.rb:1:in `require'
>> from first.rb:1
>>
>> ruby second.rb
>> "BAM!\n"
>>
>>
>>>
>>> Why RSpec doesn't see the constant when I use the `rspec` command? How
>>> can I solve
On 12 Feb 2011, at 12:49, Ants Pants wrote:
>
>
> On 11 February 2011 23:45, Matt Wynne wrote:
>
> On 11 Feb 2011, at 16:04, Ants Pants wrote:
>
>> You are my last resort for solving this issue as I have tried and tried to
>> solve it myself but can't.
rform_action'
> gems/actionpack-2.3.8/lib/action_controller/base.rb:532:in `send'
> gems/actionpack-2.3.8/lib/action_controller/base.rb:532:in
> `process_without_filters'
> gems/actionpack-2.3.8/lib/action_controller/filters.rb:606:in `process'
> gems/actionpack-2.3.8/lib/acti
ry method for a
matcher class. Unless that matcher class includes Capybara and the Rails
routing methods module (can't remember the name off-hand) you won't have access
to either of these methods in the matcher. Look at the non-DSL way to create a
matcher and this will make more sense.
A
On 31 Jan 2011, at 08:26, Pat Maddox wrote:
> I load my XML docs into a hash using Hash#from_xml and then compare the
> hashes.
Bullseye! Thanks Pat.
> On Jan 26, 2011, at 7:26 AM, Matt Wynne wrote:
>
>> I have a problem. I have a test that needs to assert that one XML
ple group.
You can also filter this, so it only does it to certain types of ExampleGroup.
I can't remember exactly what the syntax is for filtering on view specs, but
something like this:
RSpec.configure do |config|
config.extend(MySpecialLoginMethods, :view)
end
Does that help?
c
Most annoying.
I've seen a couple of RSpec matchers in blog posts that walk and compare XML
fragments but I'm surprised there isn't something more concrete that already
exists. I feel like I'm missing a way to do it within an XML library, for
example.
Any clues out there?
cheers,
On 21 Jan 2011, at 16:22, Brian Warner wrote:
> Matt Wynne wrote in post #976412:
>> On 20 Jan 2011, at 19:32, Brian Warner wrote:
>>
>>> I have a file in step_definitions that's giving me an error for an
>>> uninitialized constant. My guess is I need to &
er related so you could also ask on the
cukes google group.
Your guess is right. The best place to put your require statement is in
features/support/env.rb
I'm surprised that the book doesn't tell you to do that - did you maybe miss a
step?
cheers,
Matt
m...@mattwynne.n
s I decide that there's so little code that I don't need any
specs, and I can just rely on the Cucumber test. In that case I'll merge the
branch into master and move on.
> Cheers,
> Shea
>
> ___
> rspec-users mailing
This is a classic, with some terrific insights from Steve Freeman and Nat
Pryce, two of the finest practitioners of TDD that I know:
http://groups.google.com/group/growing-object-oriented-software/t/af0c4251123fde43
cheers,
Matt
m...@mattwynne.net
07974 430184
On 29 Dec 2010, at 10:21, Matt Wynne wrote:
>
> On 29 Dec 2010, at 06:14, Shea Levy wrote:
>
>> Hi all,
>>
>> Suppose I have a table that lists all of my products, that includes a a
>> Description somewhere in the first , and each product has its
>>
hea
>
>
It's worth looking at the tableish method that cucumber-rails provides. You can
use it to turn a HTML table element into an array. You can even diff it against
a Cucumber::Ast::Table object.
cheers,
Matt
m...@mattwynne.net
07974 430184
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
they tend to need lots of data and to take several samples to get their
average. It's worth tagging them to exclude them from your check-in build run
and running them in a nightly build instead.
Hope that helps.
cheers,
Matt
m...@mattwynne.net
07974 430184
_
Hey David,
You rock. Thanks a million. Got it working right away!
Thanks,
Matt
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
:14
>
> 2) Sample when creating 2 named items last item name
> Failure/Error: its(:name) { should == "ITEM:2" }
> expected: "ITEM:2",
> got: "ITEM:1" (using ==)
> # ./sample_spec.rb:23
>
> Finished in 0.00
yourself to do things test-first, you'll find you need
the code coverage figure less and less, because your conscience knows it's
100%. These days, unless I'm rescuing a legacy project, I only really use code
coverage to tell me about unused code that I can delete.
cheers,
Ma
On 10 Dec 2010, at 16:21, Ben Mabey wrote:
> On 12/10/10 8:56 AM, Matt Wynne wrote:
>> Hello folks,
>>
>> I'm writing some tests for file upload code. The files are binary, images
>> mostly. I'm futzing around a bit, trying to figure out how to assert that
On 10 Dec 2010, at 15:56, Matt Wynne wrote:
> Hello folks,
>
> I'm writing some tests for file upload code. The files are binary, images
> mostly. I'm futzing around a bit, trying to figure out how to assert that the
> uploaded file is the same as some go
File.read(path_to_expected_file)
Then when it fails, I get an ugly diff of the difference between the binary
files. So I'm about to invent something of my own. Has anyone got a good
pattern for doing this already?
cheers,
Matt
m...@mattwynne.net
07974 430184
of the two,
which I think it why you're getting the suprising behaviour.
>
> I'm using Ruby version 1.9.2p0 with rvm on Mac OS X 10.6.5 and RSpec
> 2.1.0.
>
> Thanks for a wonderful framework!
>
> Best regards,
> Erik
> ___
Note the
value="Message_#<RSpec::Core::ExampleGroup::Nested_1:0x010312db68>",
which must be why the test fails. Is this an intentional change on how stub
or assign works?
Much thanks!
Matt Smith
--
matthewcalebsm...@gmail.com
__
I've been looking for the definitive answer for months now, and the
RSpec book doesn't touch on it at all:
How do we now handle stubbing out rendering of partials in view specs
in RSpec2?
I have a large (35K+ lines of views and related specs) that I'm trying
to upgrade to Rails3/RSpec2. My views
2.0 was getting into the gem list
Matt
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
I've found a solution.
I upgraded rspec-rails to 1.3.3 in my gemfile, which in turn downgraded
rspec from 2.0 to 1.3.1 in the gem list. This configuration now works
ok. God knows what was happening there.
--
Posted via http://www.ruby-forum.com/.
_
Hello there
I'm running a rails 2.3.5 project and I can't run any rake tasks
My error is
no such file to load -- spec/rake/spectask
Here's a relevant snippet of gem list output
rails (2.3.5)
rake (0.8.7)
random_data (1.5.0)
RedCloth (4.2.2)
remarkable (3.1.13)
remarkable_activerecord (3.1.13)
Hey all, I'm trying to migrate over to Rails3/RSpec2 and I cannot seem
to get the specing of `render` right. I know there was some changes in
RSpec2 that affect this, and I was hoping to get a bit of help.
I have this is in a before block in a view spec:
view.should render_template("attachments/i
tsoftware.comhttp://GaslightSoftware.com/
>>
>> ___
>> rspec-users mailing list
>> rspec-us...@rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users
>
> The method
://twitter.com/mauriciojr
>> ___
>> rspec-users mailing list
>> rspec-us...@rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users
> ___
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
cheers,
Matt
http://blog.mattwynne.net
+44(0)7974 430184
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
> it 'should be deposit $10'
> user.bank.deposit(10)
> user.bank.deposit.saving.should == 10
> user.deposit_record.should == #something.
> end
> --
> Posted via http://www.ruby-forum.com/.
> ___
> rspec-users mailing
David Chelimsky wrote:
>On Aug 24, 2010, at 6:51 PM, Titinux wrote:
>
>> Hello,
>>
>> I'm new in using RSpec and I can't figured out to spec this controller
>> action.
>>
>> class OrdersController < ApplicationController
>> before_filter :authenticate_user!
>>
>> def index
>>respond_wi
!
cheers,
Matt
http://blog.mattwynne.net
+44(0)7974 430184
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
On 9 Aug 2010, at 13:04, David Chelimsky wrote:
>
> On Aug 9, 2010, at 6:37 AM, Matt Wynne wrote:
>
>>
>> On 9 Aug 2010, at 01:54, David Chelimsky wrote:
>>
>>>
>>> On Aug 8, 2010, at 11:13 AM, Matt Wynne wrote:
>>>
>>>>
&
1 - 100 of 773 matches
Mail list logo