similar to: Rails log for rspec tests inside of an engine

Displaying 20 results from an estimated 7000 matches similar to: "Rails log for rspec tests inside of an engine"

2013 Jul 04
3
Rspec devise, testing extended RegistrationController action destroy
Hi everyone, I have devise 1.5.4 working with rails 3.0.20 and ruby 1.8.7 . I have extended the destroy action from the RegistrationController, to soft delete users instead of really deleting them from the database. def destroy # raise resouce.inspect # this is just to see if the test hits the action resource.soft_delete set_flash_message :notice, :destroyed sign_out resource
2013 Apr 12
4
rails named scopes and sql injection
HI guys, I just came through an example on code of the place I work for that said something like this could be vulnerable to sql injection attacks: scope :with_name, lambda { |name| where("LOWER(name) LIKE ?", name.downcase) } I wonder if this is true. My thought is that rails should escape this and that anything that tried to do something different would fail on the translation
2014 Mar 31
0
Rails Engine ActionController::UrlGenerationError on functional tests
Hi, I'm looking for a way to solve an error I get each times I run my functional tests. I have a Rails Engine gem (isolated), I have a JSON action with a route declared. But each times I use the method get in a test I get an ActionController::UrlGenerationError exception. Here an example of code with the problem: # config/routes.rbMyEngine::Engine.routes.draw do resources :cats, only:
2014 Aug 12
0
How to make puppetlabs_spec_helper ignore modules inside fixtures
Hello all, I have created this module: https://github.com/Spantree/puppet-thrift and everything worked fine all specs ran fine. Now I using the puppetlabs/apt module and when I run the 'rake spec' it is trying to run the 'apt' tests, and it is failing (I think) because I am not providing the appropriate facts. Is there a way to ignore the rspecs inside the
2014 Jun 08
0
Re-render partial inside a modal
*Inside my home.html.erb. I am rendering a partial inside a modal for my sign-up.* <div id="myModal" class="reveal-modal" data-reveal> <%= render partial: 'users/form', :controller=>"users", :action =>"new" %> <a class="close-reveal-modal">&#215;</a> </div> *In my Users.controller.rb, I am
2014 Jun 07
0
Multitenancy with Rails and rspec
Hello, I am following this book Multitenancy with Rails. Has anyone here read this book or can shed light on the issue? When I run rspec i get following errors rspec spec/features/accounts/sign_up_spec.rb C:/Users/J/RubymineProjects/subscribem/spec/dummy/config/environments/test.rb:1:in `<top (required)>': undefined me thod `configure' for #<Dummy::Application:0x416fe08>
2011 Mar 08
3
Jet40 engine and I don't get along.
john at john-GA-MA78LM-S2H:~$ winetricks Executing wine /home/john/.cache/winetricks/jet40sp8_9xnt.exe fixme:setupapi:extract_cabinet_file awful hack: extracting cabinet "C:\\users\\john\\Temp\\IXP001.TMP\\Jetsetup.CAB" err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program files\\Common files\\Microsoft shared\\dao\\dao2535.tlb" failed with [u][b]error 2[/b][/u] Install of
2014 Jun 09
0
How can I test my controller via rspec for something other than response.should be_success?
1) Right now this is just testing a successful response. However, since I've gone and created a Post via FactoryGirl... how can I test the @post.id equals one of the id's being returned by the get: index json? describe Api::V1::PostsController do context 'Post' do before(:each) do @post = FactoryGirl.create(:post) end context '#index' do
2014 Apr 04
0
Rspec not running properly
Hello everybody, Being a new user of RoR, i'm experiencing a problem using Rspec, it should end without errors but I still get this result: PS C:\RubyTools\rubygems-2.2.2\rails_projects\sample_app> rspec spec Called from: C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/actionpack-3.2.0/lib/action_dispatch/middleware/session/abstract_store.rb:28:in `initialize'.
2014 May 19
0
Missing production secret_key_base in rails
Hi, I have asked this question on github<https://github.com/rails/rails/issues/15175> . Senny answered me to set export SECRET_KEY_BASE =d1f4810e662acf46a33960e3aa5bd0 ************************ in your peoduction server. but I do not know how to set that. I am deploying in openshift. I also have access to SSH via putty. I have tried this command in SSH but it gives an error "Invalid
2014 Aug 27
0
Could not install Rmagick Gem in rails 4 (Ubuntu 13.04)
Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /home/anil/.rvm/rubies/ruby-2.0.0-p481/bin/ruby extconf.rb checking for Ruby version >= 1.8.5... yes checking for gcc... yes checking for Magick-config... no Can't install RMagick 2.13.2. Can't find Magick-config in
2014 Apr 06
0
collection_check_boxes with has_many through: association Rails 4
I am trying to list all the categories a user can be interested in with check boxes so that a user can submit these interests through my join table. collection_radio_buttons works with a simple has_many, belongs_to association: <%= collection_radio_buttons(:listing, :category_id, Category.all, :id, :name do |b| %> <%= b.label { b.radio_button} %> <%= b.text %>
2014 Oct 23
0
Puppet agent message: Could not retrieve local facts: Could not find fact 'define_fact'
Dear all, since today the puppet agent does not work anymore if it is executed by service. I prints out: Could not retrieve local facts: Could not find fact 'define_fact' If I run puppet agent -t I do not get the message. I have updated facter from 1.7.1 to 2.1 and hiera from 1.2.1 to 1.3.4 I have Linux RedHat 5 and 6 puppet 3.3.1 facter 2.1.0 hiera 1.3.4 ruby 1.8.7 Does any have an
2014 Mar 31
0
Unable to delete post in sample blog application
Hi All, I am new to RoR and I am writing a small blog application. I have added a Destroy / Delete link to the post index, but when I click this delete link the show action is fired. The log seems to confirm this: Started GET "/posts/2" for xxx.xxx.xxx.xxx at 2014-03-31 15:51:03 +0000 Processing by PostsController#show as HTML Parameters: {"id"=>"2"} Post
2014 Apr 17
0
RestClient::ResourceNotFound in UsersController#index
Hi, I am trying to implement Rest Api for a sample application for learning purpose. But when I try to make a "GET" request through the RestClient it is showing error as RestClient::ResourceNotFound in UsersController#index def index uri = "#{API_BASE_URL}/users.json" # specifying json format in the URl rest_resource = RestClient::Resource.new(uri, USERNAME,
2014 Apr 05
0
Datepicker FlatUI rails
Hi guys, How does one use a datepicker flatUI calendar in rails? I have been poking around for documentation, but can't seem to find any. Is there any out there? Thx! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to
2014 Mar 07
0
Abril Pro Ruby 2014 - The Tropical Ruby Conference
Hello everybody, On April 24th to 27th the biggest Ruby Conference on the Northeast of Brazil will be happening, Abril Pro Ruby <http://abrilproruby.com/>. We would like to invite you to be part of the event and share you experiences with great rubists from all over the world in Porto de Galinhas, very close to Recife. Speakers from everywhere are already confirmed to the event. Take a
2014 Mar 19
0
ActionView::Template::Error: end of file reached Rails 4.0.4
I have an application I'm migrating from Rails 3.2 to 4.0. On my CI environment, I'm getting "ActionView::Template::Error: end of file reached" randomly in different controller specs pointing to a view in which I have "javascript_include_tag 'application'". Has anyone seen this before? Relevant gems: rails (4.0.4) sprockets (2.11.0) sprockets-rails (2.0.1)
2014 Jun 03
0
How to use Rambling Slider Rails
Dear all developers, I want to use slideshow in my website. and i did a research rambling slider could use with rails. but i don't know how to use it. any one could help me. thanks you, veasna -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to
2014 May 29
0
PATH problems with running Cukes from Jenkins
I'm having PATH problems with running my Cukes from Jenkins, more details here: http://stackoverflow.com/questions/23921127/cucumber-scripts-not-working-on-jenkins-due-to-path-issues -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to