Created
September 8, 2010 11:41
-
-
Save ukstudio/570004 to your computer and use it in GitHub Desktop.
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
| --format nested | |
| --color | |
| --drb |
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
| class Demo | |
| 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
| require_relative 'spec_helper' | |
| require_relative '../lib/demo' | |
| describe Demo do | |
| subject { Demo.new } | |
| it { subject.class.should == Demo } | |
| 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
| # coding: utf-8 | |
| Autotest.add_discovery { "rspec2" } |
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 'rubygems' | |
| require 'spork' | |
| require 'rspec' | |
| Spork.prefork do | |
| # Loading more in this block will cause your tests to run faster. However, | |
| # if you change any configuration or code from libraries loaded here, you'll | |
| # need to restart spork for it take effect. | |
| end | |
| Spork.each_run do | |
| # This code will be run each time you run your specs. | |
| end | |
| # --- Instructions --- | |
| # - Sort through your spec_helper file. Place as much environment loading | |
| # code that you don't normally modify during development in the | |
| # Spork.prefork block. | |
| # - Place the rest under Spork.each_run block | |
| # - Any code that is left outside of the blocks will be ran during preforking | |
| # and during each_run! | |
| # - These instructions should self-destruct in 10 seconds. If they don't, | |
| # feel free to delete them. | |
| # | |
| RSpec.configure do |config| | |
| config.mock_with :rspec | |
| end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment