Displaying 18 results from an estimated 18 matches for "8thlight".
2006 Nov 10
2
mock syntax order
...fine, but when i do it backwards, which makes the same
amount of sense syntactically, it fails
mock_requester.should_receive(:request_with).with("x").and_return
(@object).any_number_of_times
are all of the mock options deterministic? Can they be interchangeable?
Paul W Pagel
www.8thLight.com
blog.8thLight.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20061110/77a8e3be/attachment.html
2007 Feb 07
3
odd mock behavior
...ceive(:foo).twice do |i|
puts i
end
... the spec passes but i never gets puts''ed.
With the following...
my_mock.should_receive(:foo) do |i|
puts i
end
... i gets puts''ed twice but the spec fails because it was only
expecting one call to :foo.
Micah Martin
8th Light, Inc.
8thlight.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070207/19e5c667/attachment-0001.html
2006 Oct 27
2
and_return broken when using arrays
m = mock("blah")
m.should_receive(:foo).and_return([1, 2, 3])
When foo() is called on the mock it returns the first elements of the
array, 1. Shouldn''t it return the whole array?
Micah Martin
8th Light, Inc.
www.8thlight.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20061027/60d8fce9/attachment.html
2006 Oct 04
3
spec task prints usage
...se I didn''t have a views directory. I was able to get rid of
the usage output by creating the views directory and adding a blank
spec. It''d be convenient if RSpec would ignore missing/empty spec
directories.
BTW, thanks for the cool tool.
Micah Martin
8th Light, Inc.
www.8thlight.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20061004/7def3e0d/attachment.html
2006 Oct 24
2
1 should be 2. huh?
...ext and
read like this:
x should equal 2 but was 1
a should not be nil but was nil
I realize there might be an issue printing the expression that gets
evaluated, but you guys have done some cool magic to this point.
Have you got a bit more up your sleeves?
Micah Martin
8th Light, Inc.
www.8thlight.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20061024/21a37e7b/attachment.html
2006 Oct 23
6
overriding mock expectations
...text. Then in each spec I''d like to override a specific
should_receive relevant to the spec.
Without being able to override, I am force to define all the
should_receives for each spec..... duplication.
Is there another solution I''m missing?
Micah Martin
8th Light, Inc.
www.8thlight.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20061023/24f10a56/attachment.html
2008 May 21
1
Fwd: One Build at a time
...re a way to configure Cruise Control rb to only build one
> project at a time?
>
> I have two projects is two different repositories, and I don''t want
> their builds to overlap.
>
> Thanks,
>
> Doug Bradbury
> Software Craftsman
> 8th Light, Inc.
> blog.8thlight.com/doug
2006 Nov 28
8
view specs with partials
When I first learned about the View specs I was very excited. I
still am. However, I haven''t found them useful yet for one reason.
They throw the following exception when ever a view renders another
view, which is very common.
ActionView::TemplateError in ''Event View message''
No rhtml, rxml, rjs or delegate template found for spec/rails/
view_spec/_info
2006 Oct 25
2
mock parameter problem
...#39;' expected ''foo'' with one parameter, but received it 1 time
with the wrong parameter
Perhaps existing mock frameworks already have elegant terminology
that could be referenced.
I''ll submit an RFE as soon as I figure out how.
Micah Martin
8th Light, Inc.
www.8thlight.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20061024/fe07aa2d/attachment.html
2006 Sep 13
2
stale spec runner?
...9;Guesser first guess gets saved''
undefined method `controller_path'' for GuesserController:Class
./spec/controllers/guesser_spec.rb:38:in `first guess gets saved''
./spec/controllers/guesser_spec.rb:37:in `first guess gets saved''
Micah Martin
8th Light, Inc.
www.8thlight.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20060913/8bfbd431/attachment-0001.html
2007 May 07
6
mock frameworks
Just curious - now that rspec (as of 0.9) let''s you choose your mock
framework, how many of you are actually using (or planning to use)
mocha or flexmock?
Anybody planning to use any other mock framework besides rspec, mocha
or flexmock?
Thanks,
David
2006 Oct 04
1
String.should_hav_tag
...ould_have_tag :tag => "body"
But these fail with 0.6.4. The documentation still suggests this
should work.
I was able to solve the problem by adding the following to my spec
files:
class String
include Spec::Expectations::TagExpectations
end
Micah Martin
8th Light, Inc.
www.8thlight.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20061004/833c050d/attachment-0001.html
2006 Nov 30
4
response is null when using should_render_rjs
I''m trying to use rspec to test a controller that has ajax.
I have the following action:
def change_ad_type_form
render :update do |page|
page.replace_html ''ad_sub_form'', :partial => ''text''
end
end
and the following spec:
specify "should return Text subform on AJAX request to
change_ad_type_form" do
2008 May 21
0
One Build at a time
Hello CCrb users.
Is there a way to configure Cruise Control rb to only build one
project at a time?
I have two projects is two different repositories, and I don''t want
their builds to overlap.
Thanks,
Doug Bradbury
Software Craftsman
8th Light, Inc.
blog.8thlight.com/doug
2006 Nov 16
0
helpers not rendered in views?
...lt;/textarea>
<% end_form_tag %>
</div>
failing spec:
specify "Form is rendered" do
render "/controller/_xyz"
response.should_have_tag ''form'', :parent => { :tag => "div" }
end
Micah Martin
8th Light, Inc.
www.8thlight.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20061116/9c1ff95b/attachment.html
2006 Oct 26
0
rescue_action overridden
...derstand that this is a better way to handle errors than the
default. However, it gets in the way when you''ve defined your own
rescue_action and are trying to test it.
No good solutions came to me while I pondered the problem. Anyhow,
there it is.
Micah Martin
8th Light, Inc.
www.8thlight.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20061026/76a06f28/attachment.html
2007 Feb 20
1
sugar constructor error
...'
require ''wx''
require ''wx_sugar/all''
frame = Wx::Frame.new(nil, :title => "Text")
panel = Wx::Panel.new(frame)
With the following error.
0.1.13/lib/wx_sugar/keyword_constructors.rb:244: [BUG] Bus Error
Any ideas?
Micah Martin
8th Light, Inc.
8thlight.com
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2007 Feb 19
2
Sizer question
...TAL, 0) # according
to the book, the flag 0 means the window should not be resized.
- and several other combinations of flags and settings
I''d like the child to remain centered horizontally without it''s size
changing at all. How is this done?
Micah Martin
8th Light, Inc.
8thlight.com
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users