This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "spec_helper" | |
| describe Stalker, "/jobs/stalker_example.rb" do | |
| before :all do | |
| # Make sure beanstalkd is running | |
| if `pgrep beanstalkd` == "" | |
| raise "PRECONDITION NOT MET: beanstalkd not running" | |
| end | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # lib/jobs/stalker_example.rb with Full Rails Environment -- This should be stripped down to the bare essentials needed to run... | |
| require File.expand_path("../../../config/environment", __FILE__) | |
| module Stalker | |
| PROCESSING_DELAY = 5 | |
| job "basic_job" do |args| | |
| log "Running (basic_job), Args: #{args.inspect}" | |
| Stalker.enqueue("second_job", { :id => args["id"] }, { :delay => PROCESSING_DELAY }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| describe 'ProjectName.Models.TestModel:', -> | |
| describe 'ProjectName.Models.TestModelTest:', -> | |
| beforeEach -> | |
| @model = new ProjectName.Models.TestModel({test_string: "Hello World"}) | |
| it "should load spec helper file", -> | |
| expect(CoffeeSpecHelper.coffee).toEqual('script') | |
| it 'Example Model Test', -> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "/assets/jquery.js" | |
| require "/assets/jquery_ujs.js" | |
| require "/assets/underscore.js" | |
| require "/assets/backbone.js" | |
| require "/assets/backbone_rails_sync.js" | |
| require "/assets/backbone_datalink.js" | |
| require "/assets/backbone/project-name.js" | |
| require "/assets/backbone/models/test_model.js" | |
| require "/assets/test_model.js" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'capybara-webkit' | |
| Evergreen.configure do |config| | |
| config.driver = :webkit | |
| config.public_dir = 'public' | |
| config.spec_dir = 'spec/javascripts' | |
| config.template_dir = 'spec/javascripts/templates' | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| group :development, :test do | |
| gem 'rspec-rails' | |
| gem 'capybara' | |
| gem 'capybara-webkit' | |
| ... | |
| # Javascript Testing Engine | |
| gem 'evergreen', :require => 'evergreen/rails' | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <style> | |
| #list { | |
| float: left; | |
| width: 10%; | |
| overflow: hidden; | |
| } | |
| #list ul { | |
| padding: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <style> | |
| #list { | |
| float: left; | |
| width: 10%; | |
| overflow: hidden; | |
| } | |
| #list ul { | |
| padding: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace :trample do | |
| desc 'Generate Trample config file from Rails log file' | |
| task :generate do | |
| input = ENV['LOG'] | |
| if input.empty? | |
| puts "ERROR: No log specified!" | |
| puts "Run like: rake trample:generate LOG=log/development.log" | |
| exit | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace :wsesslog do | |
| desc 'Generate httperf wsesslog file from Rails log file' | |
| task :generate do | |
| input = ENV['LOG'] | |
| if input.empty? | |
| puts "ERROR: No log specified!" | |
| puts "Run like: rake wsesslog:generate LOG=log/development.log" | |
| exit | |
| end | |
NewerOlder