Displaying 3 results from an estimated 3 matches for "setting_value".
2006 Apr 11
6
asp''s application object rails equivalent?
In asp there''s a built''in object, Application, which behaves like the
session, but it allows you to share information among all users of the
application.
(http://www.microsoft.com/windows2000/en/server/IIs/default.asp?url=/windows2000/en/server/IIs/htm/asp/vbob6zkv.htm)
It''s just like if every user would be accessing the same session.
what is the rails equivalent?
2007 Apr 30
4
Mocking with Calculated Results
...ull_messages).and_return([''a message''])
@setting = mock_model Setting do |m|
m.stub!(:save).and_return(true)
m.stub!(:destroy)
m.stub!(:errors).and_return(@countable)
m.stub!(:setting_name).and_return(''first_name'')
m.stub!(:setting_value).and_return(''first_value'')
m.stub!(:setting_type).and_return(''first_type'')
end
Setting.should_receive(:find).any_number_of_times.and_return do |a|
case a
when :all then [@setting, @setting]
when /\d+/ then @setting...
2007 Apr 28
7
[ rspec-Patches-9605 ] Patch for ER 9472, shared behaviour
Hi all - I''ve applied (to trunk) Bob Cotton''s patch which supports
shared behaviours (link to tracker below).
I''m still toying w/ names, so please be aware that until this is
released w/ 0.9 it should be considered experimental and there will
NOT be translation support for it. It will definitely be included in
some form - just the names (specifically