search for: jko170

Displaying 20 results from an estimated 24 matches for "jko170".

Did you mean: j170
2008 May 26
5
Noob SASS error (permission denied)
I just created the sass directory in my stylesheets directory and when I reload my page I get this error: Status: 500 Internal Server Error Permission denied - /Users/Justin/kicksite/trunk/public/ stylesheets/ application.css /usr/local/lib/ruby/gems/1.8/gems/haml-2.0.0/lib/sass/plugin.rb: 72:in `initialize'' /usr/local/lib/ruby/gems/1.8/gems/haml-2.0.0/lib/sass/plugin.rb: 72:in
2012 Feb 13
11
stale records with integration testing?
Hi, I was writing an integration test for my user signup form (with capybara), and found that my test was failing due to a validation error: "email is already taken". I''m a bit confused because I thought when I run "rspec spec/some_spec.rb", the test database would be wiped clear? Is that not the case? Patrick J. Collins http://collinatorstudios.com
2009 Jul 20
9
rake error
When I run rake test:units I get this error: 292 tests, 350 assertions, 2 failures, 13 errors rake aborted! Command failed with status (1): [/usr/local/bin/ruby -I"lib:test" "/ usr/loc...] This error just showed up yesterday --- I have no idea how I caused it. Here is my gem list in case that helps: actionmailer (2.3.2, 2.2.2) actionpack (2.3.2, 2.2.2) activerecord (2.3.2, 2.2.2)
2010 Feb 11
6
Anyone know of a Rails POS (point-of-sale) app?
Open-source or commercial. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit
2011 Sep 07
4
rspec testing inheritance
Hello, Is there any way to test model inheritance in spec? something like.. it { ChildModel.should < ParentModel } thanks.
2007 May 28
5
validates_uniqueness_of does not pass unit test
I am doing some very very basic unit testing. If I take away the uniqueness validation, the tests pass. Could this be a bug in Edge Rails? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2009 Nov 07
1
rake spec runs my spec:remote specs!
In my spec folder, I have a "remote" directory, which contains my specs for live data transferring with an outside api. When I run rake spec, it runs the remote specs and I don''t want it to. Keep in mind there is NO lib/tasks/remote.task file. I ONLY want these remote specs to run when I execute rake spec:remote How can I achieve this?
2008 Oct 01
1
ffmpeg audio not working
I''m converting videos to .flv but I can''t hear any sound. Is this ffmpeg command correct? ffmpeg -i #{path} -an -s 480x360 -vcodec flv -r 25 -qscale 8 -f flv -y #{flv} Thank you. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email
2007 Apr 08
13
attachment_fu thumbnail not created
I followed the instructions on Mike Clark''s weblog and everything works perfectly except the thumbnail column in my DB is alwas NULL. I''m using S3 as my storage system. Anyone else having this issue with thumbnails? has_attachment :content_type => :image, :storage => :s3, :max_size => 500.kilobytes, :resize_to =>
2007 Apr 18
3
nil.symbolize_keys -- error with attachment_fu
I''ve spent at least 2 hours on this one problem. On my local machine in my controller I have this: def new @page_title = "New User" @user = User.new @photo = Photo.new end All is good. Now, on the remote server I get an error when accessing the ''new'' view. If I remove @photo = Photo.new from the controller then the error goes away. This same error
2007 Mar 13
6
Easy Date question - newb
All I want to do is find the objects that were created today under the ''created_on'' column. I''ve tried many ways, here is one example using the chronic gem. @products = Product.find_all_by_created_on(Chronic.parse(''today'')) I must be missing something right in front of me .... Thanks for any help.
2007 Mar 17
3
How is this done with REST (blinksale account)?
In Blinksale, the settings link in the top right takes you to the / account url. From there, the side nav takes you to /account;templates / account;reminders , etc. >From what I''ve read, ;templates and ;reminders are custom rest actions for a given resource. But the controller (account) does not appear to be of rest nature. Also, when creating a new account, the url is / firms/new .
2007 Dec 18
2
attachment_fu and S3 -- cannot download file correctly
I don''t know why this isn''t working. If I download a word doc that I uploaded, all I get is the S3 file path in the document. If I access the s3 file path directly in my browser, it downloads the file correctly. Here is my controller method: def download @curriculum = @school.curriculums.find(params[:id]) send_data @curriculum.attachment.public_filename, :filename
2008 May 25
2
record will absolutely not save! so weird, please help.
I have a weird problem going on. All of sudden, records for a certain model will not save with #save Please take a look at this: >> p = Payment.new(:payment_reason_id => 1, :payment_method_id => 1, :date => Date.today, :amount => ''5.00'', :payable => Student.find(608)) => #<Payment id: nil, school_id: nil, payment_reason_id: 1, payment_method_id: 1,
2012 Feb 21
8
should_receive_chain
Do you often find yourself doing this: active = double(''active'') active.should_receive(:first) users = double(''users'', active: active) account.should_receive(:users).and_return(users) for this: account.users.active.first ? Of course, we could use stub_chain, but that doesn''t let us know *where* the chain broke. Would you like to do this?
2012 Jan 17
2
does jruby rspec have to use selenium?
With jruby and rspec requests, do you have to use selenium webdriver? I''m confused, with ruby and rubyonrails using cucumber with capybara, I didn''t have to set the default driver, what was it using and can i use that with jruby? Things just worked w/o me even having to know about it :) -------------- next part -------------- An HTML attachment was scrubbed... URL:
2007 Aug 09
2
trying to find records that haven't been updated in 2 weeks
My app has some students that have attendances. I''m trying to find students who have not attended class in the last 2 weeks. Here is my code that is not working: students = @school.students.active @missed_attnd = [] students.each do |student| unless student.attendances.empty? @missed_attnd << student if student.attendances.first.date <= Date.today - 2.weeks end end An
2011 Sep 08
2
rspec and testing IO
I have a class that expects some input via ''gets''. I found that, when testing, I can do something as simple as this: @foo.stub!(:gets) { "stuff\n" } However that only works in the most simple case. In my case the class asks a series of questions that require a yes/no answer culminating in some end state. The class then asks if the user would like to go through the
2010 Sep 27
3
having some issues with factory_girl and bundler...
Hi All Need some brilliants minds here :) I''m using Rails 2.3.8 & ruby 1.8 (I know, I know... ) I''ve move my gems from .gems to Bundler, but I''m having some issues with Factory_girl when I rake spec "uninitialized constant Factory" I''m following the instructions from http://gembundler.com/rails23.html. Basically: - grab all config.gem and place
2011 Sep 13
12
Assertions for asynchronous behaviour
Hi all, In GOOS[1] they use an assertion called assertEventually which samples the system for a success state until a certain timeout has elapsed. This allows you to synchronise the tests with asynchronous code. Do we have an equivalent of that in the Ruby / RSpec world already? I know capybara has wait_until { } but that''s fairly rudimentary - the failure message isn''t very