similar to: Set server-side environment variables in integration testing

Displaying 20 results from an estimated 90000 matches similar to: "Set server-side environment variables in integration testing"

2012 Feb 10
2
My Host
I need to get some absolute redirects working -- basically I set callback hooks to external services, but I want these hooks to use my configured CNAME''s. I''m trying to find a way so that my app doesn''t have to know about these CNAME''s. So I''m looking at the request in the controller to try and get the base URL where I''m running. To
2011 Apr 30
1
[rspec-rails] Is it bad form to use spec/requests/*_spec.rb for integration tests?
So I wanted to cook up a quick integration test for something, and I''m using rspec. I personally just don''t like Cucumber - just a personal preference, not a slam to the test framework at all - and wanted to stick to just pure rspec. So I dumped a quick spec file in spec/ reqests and ran it, and of course everything works. But is this considered bad form, or a less-than-good
2011 Oct 10
0
passenger , ruby on rails , apache 2.2.21
Hello, I am configuring apache 2.2 to serve my rails app through passenger. First, I redirect all http traffic to https with the following: This is my web server apache conf file. ServerName sampleapp NameVirtualHost *:80 <VirtualHost *:80> Options FollowSymLinks RewriteEngine On RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
2013 May 30
0
HTTP 500 error page
Hello all, I''d like to have nginx+passenger show the custom (Default) error pages when a HTTP 500 error occurs in my app. I am running a rails 2.3 app on nginx 1.2 with passenger 3.0.7 Here is my nginx config file: #user nobody; worker_processes 16; error_log /opt/nginx/logs/error.log info; pid /opt/nginx/logs/nginx.pid; worker_rlimit_nofile 32768; events {
2010 Aug 03
0
curl works when testing JSON response but the functional and integration tests do not work.
I am trying to test an action which is supposed to give a json response The url goes something line /blah/model.json When I POST to that URL using curl like this curl -H "Content-Type:application/json" -H "Accept:appn/json" -d "data" http://localhost:3000/blah/model.json it works just fine. In my test functional test I have this method def post_json (data)
2011 Jun 09
0
failing integration test
I am following the Ruby on Rails tutorial here: http://ruby.railstutorial.org/ruby-on-rails-tutorial-book?version=2.3 I am at this section: http://ruby.railstutorial.org/chapters/filling-in-the-layout?version=2.3#code:layout_links_spec Here is my layout_links_spec.rb: require ''spec_helper'' describe "Layout links" do it "should have a Home page at
2011 Mar 03
1
Nondestructive testing environment on legacy db
Hi, I''ve been trying to Google for an answer to this, but the suggestions I''ve found have been either contradictory or seemingly outdated. I''m building a Rails frontend for a legacy Oracle database, and I want to do proper tests with RSpec/Cucumber. What I can''t seem to figure out is how to run tests without destroying and rebuilding the database. I''m
2013 Feb 02
1
How to set css styles with variables in rails if certain item is selected?
I''m doing the Ryan Bates Sortable Table Columns screencast If the item is a table and I want to a style if the item is selected how can I do it? Attachments: http://www.ruby-forum.com/attachment/8101/sortable.txt -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To
2010 Feb 02
0
How to set RUBY EXECUTABLE path in Ruby Gems Environment
I have ruby 2 version in my Mac which are 1.8.6 and 1.8.7. I would like to set Rubygems environment to point to Ruby 1.8.7. Anyone know this issure???? ubyGems Environment: - RUBYGEMS VERSION: 1.3.5 - RUBY VERSION: 1.8.6 (2008-08-11 patchlevel 287) [universal- darwin9.0] - INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8 - RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/
2010 Nov 19
1
Help: delegated association 'App' returning ActionDispatch::Integration::Session instead
class Foo < ActiveRecord::Base has_one :bar delegate :app, :to => :bar end class Bar < ActiveRecord::Base belongs_to :app def self.attribute_column_names return @@attr_columns if defined?(@@attr_columns) readers = content_columns.map { |n| n.name.intern } - [:created_at,:updated_at] @@attr_columns ||= readers.map { |k| [k, "#{k}=".to_sym] }.flatten end
2010 Jul 19
0
Forking and integration tests
Hi All, I had a bug in one project, that data get duplicated in the DB due to multiple instances of the application (multiple thins) are accessing the DB at the same time .. The typical mistake. Problem fixed. I just need to write a test code that covers the fixed bug. I need to simulate the concurrent requests that can result in the original bug. I thought of many ideas and decided to go with
2012 Mar 19
0
Re: Rails - validate inclusion fails on rake test:integration
Frederick Cheung: "why validate the inclusion at all ? I''d validate the presence of the foo_id column and use a foreign key constraint to ensure that it can''t contain junk." How you''d "use a foreign key constraint"? That is, how do you''d implement the code in order "to ensure that it can''t contain junk"? -- You received
2010 Jul 08
2
Paypal Integration
Hi all -- 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 this group at
2013 May 27
0
Environment management problem
Hi, i have a rails app with the three default environments. Everything works fine until I added a new environment. I added it by copying out the production env file. The problems which this led to: i) I was using jqueryui autocomplete which failed to load when i tried (rails s -e staging). So i went ahead to precompiled assets using rake. Then the assets(images) also stopped loading (Error :
2010 May 13
0
[JOBS] Flickr API Integration Project
Looking for a freelance RoR developer to work on a innovative project. We''re looking for someone who is really passionate about delivering solid functionality and writing beautiful code. The site contains an extensive searchable/sortable library of science- related images and data. The web-application part of the project calls for site visitors (science students) to participate and
2011 Apr 18
2
Rails3 integration with SourceForce
Hi, I looking forward to integrate Rail3 application with SourceForce. Any help in this regard is appreciated. Thanks, Balakrishna -- 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
2013 Oct 18
1
Rails 4 + AngularJs (unembedded client) integration sample
Hi everybody, I''m experimenting with Rails and AngularJs (as unembedded client) and decided to upload to a public github repository my efforts. Of course, everything is just a toy application I use to experiment and test on various stuff (there''s absolutely no production ready nor TDD/BDD backed code). As of now a very basic login/signup feature is implemented and
2013 Mar 14
1
Ubuntu 12.10 Nginx Rails 3.2.13. Deploy in sub URI. Nothing happens!
Dear friends, I followed the guide on http://techoctave.com/c7/posts/16-how-to-host-a-rails-app-with-phusion-passenger-for-nginx and successfully deployed two apps on the same web server, some months ago. Then when I upgraded to Rails 2.3.13.rc1 everything seems to be OK, but when I visit my app with the browser all that I get is the Welcome page from Nginx. Here is my nginx.conf:
2011 Feb 24
1
Rails 3 testing help with TinyMCE gem and plugin
Hiya, I''ve taken over maintenance of the tiny_mce gem (https://github.com/kete/tiny_mce/) and am preparing a release that will have the latest TinyMCE and take advantage of some TinyMCE jQuery integration. I''m in the process of getting things working again with Rails 2.3.x (jQuery integration stuff broke things) and I could use hand with testing with Rails 3.x. I don''t
2010 Jan 29
4
requiring records in the DB before testing
Is there any way I can require a small set of data be in the test database before any tests are run? (unit, functional, integration, cucumber, etc) Any way besides using fixtures, that is. Overload a rake task? Modify test_helper? Any ideas? (Simple Case: I have to have a minimal set of user roles defined before any users can be created) -- You received this message because you are subscribed to