Displaying 14 results from an estimated 14 matches for "tenner".
Did you mean:
tener
2007 Nov 28
6
Broken edge
Hi all,
Not sure if I''m the only one with this problem...
We''re on edge for both rails and rspec, and i just did an update...
Some apparently innocuous rails stuff was updated, and then half my
specs broke due to an error in rspec_on_rails:
ArgumentError in ''UserController without logged in user should show
the index page''
wrong number of arguments (2
2007 Dec 11
14
Attachment-fu + Story Runner
Hi all,
I''m trying to run a Story Runner integration test that uploads a file
through Attachment-fu.
I''ve tried various ways of specifying the file data, from custom mocks:
class MockFile < Struct.new
(:original_filename, :read, :content_type); end
fdata = MockFile.new "test_upload.txt", "Test Upload", "text/plain"
to
2007 Nov 26
8
Renaming RailsExample to RailsExampleGroup
Fyi, I made the following renames:
* RailsExample -> RailsExampleGroup
* FunctionalExample -> FunctionalExampleGroup
* ControllerExample -> ControllerExampleGroup
* ViewExample -> ViewExampleGroup
* HelperExample -> HelperExampleGroup
* ModelExample -> ModelExampleGroup
This was done to keep the naming consistent with ExampleGroup.
2009 Jul 09
3
before(:all) and nested contexts
On Thu, Jul 9, 2009 at 5:40 AM, Daniel Tenner<daniel.rspec at tenner.org> wrote:
> Hi all,
> Like everyone (?), I use nested contexts to keep my specs well organised and
> tidy.
> However, I have a problem. I have various sets of specs that needs to
> perform very time-expensive operations to set up the fixtures that will...
2007 Nov 29
3
Stylistic preferences
What are people''s opinions on which of these two styles is better to
use?
1) before
---------------------------
module UserSpecHelper
include GenericSpecHelper
def valid_sms_attributes(phone_number="12345")
{ :phone_number => phone_number }
end
end
describe User, "with phone number" do
include UserSpecHelper
before(:each) do
@user =
2007 Dec 13
16
"Tricks" for testing after_create callback???
I''ve got a model Message, which needs to send an email using action
mailer after it''s first saved in the database.
I want to pass the model to the mailer which then uses methods on the
message model to render the email.
So the natural way to do this is in an after_create callback on the
Message model.
But I can''t see an easy way to test this. Here''s my spec
2007 Nov 25
2
Rails sessions in plain text stories
Ok, maybe I''m being particularly thick, but I''ve been trying to find
the solution to this for a couple of hours now and I just can''t seem
to be able to do it...
I''m trying to write a step as such:
Given("user $email is logged in") do |email|
user = User.find_by_email(email)
session[:user_id] = user.id
end
This is the way it would
2007 Dec 11
4
X100P Fxo card headaches
...nch) + zaptel (svn 1.4) on a
Debian Etch box, with 1gb ram, running all of the services for my home
server (web / db / music server etc), and i would like to run my PSTN
line from Kingston Comms, but i can't get this box the recoginsie this
line!
The X100p is a cheap clone i got off ebay for a tenner, so im not
expecting much, i know they have echo issues, but im going to upgrade
to a SPA3012 / TDM400B when i have the cash.
Ztcfg -vv reports
orange:~# ztcfg -vv
Zaptel Version: SVN-branch-1.4-r3374
Echo Canceller: MG2
Configuration
======================
Channel map:
Channel 01: FXS Kewlst...
2007 Oct 19
27
Assumption tests
Hi all,
I''ve been thinking about the whole validator/relationship speccing
issue, and I came up with a suggestion, which I''d love to get some
feedback on.
The full article is available at http://www.inter-sections.net/
2007/10/19/what-to-test-and-specify-and-where-to-do-it/ , with the
relevant bit being about halfway down, but here''s the gist of it:
1.
2008 Jan 08
47
specs on private methods
How does a person test private methods?
Is there a way to declare them as private, but retain any tests that
were written during the initial development?
Thanks.
--
Posted via http://www.ruby-forum.com/.
2007 Dec 13
8
stub with assigns?
is there a way to stub a method that sets an instance variable, so
the stub sets it too?
def find_foo
@foo = Foo.find(params[:id]
end
...
controller.stub!(:find_foo).and_assigns(:foo, "123")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20071213/2042719f/attachment.html
2007 Dec 04
12
params not available for controller specs?
Hi, all,
I''m trying to write a spec for a controller method that starts out:
def download
@orders = Order.find( params[:ids] )
...
and started writing a spec that set params[:ids] to a mock. I was surprised to discover that controller specs (at least in RSpec 1.0.8) don''t offer the use of the params object (per
2007 Dec 03
18
Need help mocking this out
Let''s say you''re using the restful_authentication plugin.
You have a model called articles. On the index action of the
articlescontroller you simply want to spec out that it''ll scope the results
to the ownership of the current_user.
It should NOT include any articles other than the articles that user owns.
How would you properly spec this out?
Thanks for the help!
2007 Nov 07
0
Tutorials & release timetable
Hi,
I want to try Facebooker again for a new project, after a moderately
painful couple of months with RFacebook. I see there is some activity
on the project, but still can''t find any docs or tutorials or such
anywhere, and was wondering if anyone had located any of those hidden
away somewhere in some dark confine of the internet... It would
probably be quite handy to get some