Displaying 20 results from an estimated 102 matches for "ashleymoran".
2007 Jun 27
2
Controller specs not shareable?
...late_quote", :shared => true do
controller_name :gap
# ...
end
describe "XHR POST /gap/calculate_quote with valid details" do
it_should_behave_like "All XHR POSTs to /gap/calculate_quote"
# ...
end
blows up with the following error:
##########
/Users/ashleymoran/Documents/Development/YourMoney/trunk/src/vendor/
plugins/rspec/lib/spec/dsl/behaviour_eval.rb:137:in `method_missing'':
undefined method `controller_name'' for # (NoMethodError) from ./spec/
controllers/gap_controller_spec.rb:165 from /Users/ashleymoran/
Documents/Development/...
2006 Oct 23
1
Getting users and groups through winbind on FreeBSD
...is not correct".
The same log file spews out the following:
[2006/10/23 13:04:34, 4] nsswitch/winbindd_dual.c:fork_domain_child(806)
child daemon request 13
[2006/10/23 13:04:34, 3] nsswitch/
winbindd_pam.c:winbindd_dual_pam_auth_crap(1460)
[ 6457]: pam auth crap domain: JIGSAWHQ user: ASHLEYMORAN
[2006/10/23 13:04:34, 4] nsswitch/winbindd_dual.c:fork_domain_child(806)
child daemon request 20
[2006/10/23 13:04:34, 3] nsswitch/
winbindd_async.c:winbindd_dual_lookupname(709)
[ 6457]: lookupname JIGSAWHQ\ashleymoran
[2006/10/23 13:04:34, 3] nsswitch/winbindd_rpc.c:msrpc_name_to_sid(257)...
2007 Jun 14
4
Can''t run RSpec files in TextMate
Hi
Not sure if this is the place to ask this or not. I''ve upgraded to
RSpec 1.0.5, installed the latest TextMate bundle, but whenever I do
"Run Behaviour Descriptions in selected files/directories" I get this:
/Users/ashleymoran/Library/Application Support/TextMate/Pristine Copy/
Bundles/RSpec.tmbundle/Support/lib/spec_mate.rb:18:in `run_files'':
private method `split'' called for nil:NilClass (NoMethodError) from /
tmp/temp_textmate.ii9VqG:4
If I try the "Run Behaviour Description" I get thi...
2007 Oct 21
10
Preferred mock framework
...for RSpec''s
own specs. (Corrections accepted...) If that is the case,
surely they will remain good enough for use with application code?
I just don''t know what to use for mocking any more...
Ashley
--
blog @ http://aviewfromafar.net/
linked-in @ http://www.linkedin.com/in/ashleymoran
currently @ home
2007 Oct 31
16
Am I missing something with Heckle?
...ble mutations
**********************************************************************
1 mutations remaining...
No mutants survived. Cool!
What''s going on? None of this is behaviour I expect.
Ashley
--
blog @ http://aviewfromafar.net/
linked-in @ http://www.linkedin.com/in/ashleymoran
currently @ home
2007 Oct 24
3
How do you specify a rubygem is being required?
...ails with this:
Mock ''Object'' expected :require with ("sqlite3") but received it
with ("sqlite3/database")
(!!!)
I''m at a loss, I hope someone can help
Thanks
Ashley
--
blog @ http://aviewfromafar.net/
linked-in @ http://www.linkedin.com/in/ashleymoran
currently @ home
2007 Oct 28
4
A better way to stub out constants
...ea?
Alternatively, am I better using unless const_defined? to avoid
redefining them, or perhaps silencing errors somehow? Either of
these will still dirty the namespace though.
Better ideas welcome!
Thanks
Ashley
--
blog @ http://aviewfromafar.net/
linked-in @ http://www.linkedin.com/in/ashleymoran
currently @ home
2007 Oct 23
10
How is everyone structuring stories?
...story_spec.rb",
".story")
)
in the former. Simple to make TextMate recognise the RSpec files
(even though they aren''t, as such) and to give an extension to the
stories.
Ashley
--
blog @ http://aviewfromafar.net/
linked-in @ http://www.linkedin.com/in/ashleymoran
currently @ home
2007 Feb 13
7
Specs of code that use Time.now
Hi
Just trying to spec a Rails model that defaults a valid_until date to
this time tomorrow. I''ve done something similar involving Dates, and
you can stub the :today method to return something fixed. But when I
tried this with Time, I found that RSpec calls Time.now four times
per spec. So there''s no way to spec code like 1.days.from_now . The
best I can come up
2007 Oct 20
3
TextMate bundle in MacroMates repo
...croMates repo, which it is. Is that an
officially handled thing? If so, what version of the RSpec bundle is
being maintained there - CURRENT? It''s confusing having it available
in two locations.
Ashley
--
blog @ http://aviewfromafar.net/
linked-in @ http://www.linkedin.com/in/ashleymoran
currently @ home
2007 Oct 31
5
Rspec Release Plan (was Am I missing something with Heckle?)
On Oct 31, 2007 11:36 AM, Scott Taylor <mailing_lists at railsnewbie.com> wrote:
> When can we expect the next release of rspec?
Definitely by the end of November.
Likely by mid-November.
Hopefully in a matter of days.
The next release will be 1.1.0.
We''re going to a release model in which 1.odd.x will be considered
experimental. This means that while we will document
2007 Jun 15
2
Is it still possible to use should_have_rjs
...Spec 1.0.5. I used the spec translator, fixed
the cases where it barfed on unusual line contents, and all my model
and controller specs now pass. But I''m getting 53 failures on my view
specs, all along the lines of:
should have visual effect
Unknown RJS statement type effect
/Users/ashleymoran/Documents/Development/YourMoney/trunk/src/spec/
views/admin/add_dealer_rjs_view_spec.rb:33
31
32 it "should have visual effect" do
33 response.should have_rjs(:effect, :blind_down, "add_dealer")
34 end
35
I''m trying to revert these to should_have_rjs but I'...
2007 Oct 17
15
Any tips on teaching BDD with RSpec?
...wise) from scratch and may be able to point me in the
right direction.
Thanks for any advice
Ashley
PS I haven''t told him to subscribe to this list yet, so I''m safe to
talk about him for a bit :o)
--
blog @ http://aviewfromafar.net/
linked-in @ http://www.linkedin.com/in/ashleymoran
currently @ work
2007 Oct 24
3
changes to Story Runner steps
Hi all,
The following only affects people who have bravely begun to experiment
with the 2 day-old plain text story runner and definable groups of
steps.
For those who fit that bill, I just committed a few changes that will
require you to make changes to your code.
The StepMatchers class is now the StepGroup class.
The step_matchers methods on PlainTextStoryRunner and StepGroup is now
just
2007 Aug 21
1
Render template not matching absolute path
...end
end
end
And I want to test that it renders the gap.rcss file, but my spec,
it "should render the gap.rcss template" do
do_get
response.should render_template("gap.rcss")
end
fails with this error:
Expected "gap.rcss", got "/Users/ashleymoran/Documents/Development/
YourMoney/trunk/src/config/../app/views/stylesheets/gap.rcss"
I don''t remember this failing in 1.0.5, but it''s been a while since I
worked on this project so might be just be my bad memory. Am I doing
something wrong or can you not spec "ren...
2007 Feb 22
9
specking, speccing, or spec''ing
I vote for spec''ing.
Anybody else?
2007 Nov 13
2
testing scripts
So in the past I''ve written a script that query''s a remote DB, takes
the data, validates it, then does some processing, producing a new file
with the data in a completely different format.
Since this is a script with it''s own set of methods, etc, how do I go
about testing the pieces parts?
It seems like it should be no different than doing the rails testing I
have
2007 Aug 08
9
RSpec book?
<http://www.apress.com/book/bookDisplay.html?bID=10368>
Came across this as a stub page browsing Amazon UK. This is good
news! I''m surprised it hasn''t been discussed on the list before.
Was Chad keeping it a secret?
I hope it will have plenty of BDD theory. I''m still waiting for that
magic book I can give to someone and say "here - read this, it
2006 Apr 11
10
Ruby on Rails as rapid prototyping tool
[This might be slightly off-topic]
I just posted my thoughts on how we use Rails as rapid prototyping tool in
Capgemini.
http://justaddwater.dk/2006/04/12/rails-prototyping/
Unfortunately I cannot give details as to which clients due to privacy
issues. Just want tho share my thoughts on this and hear if you have
anything to add.
--
Jesper R?nn-Jensen
Capgemini Danmark A/S
Oernegaardsvej 16
DK -
2007 Oct 21
8
Interesting shared behaviour side-effect
Given the following ApplicationController specs:
describe ApplicationController, "one facet", :shared => true do
it ''foo'' ...
it ''bar'' ...
end
describe ApplicationController, "some other facet", :shared =>
true do
it ''abc'' ...
it ''xyz'' ...
end
describe