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 "calculator" do | |
| it "should add two numbers together" do | |
| expect_that "2 + 3 = 5" do | |
| Calculator.new.add(2,3).should == 5 | |
| end | |
| end | |
| end | |
| # if the expectation failed then the message would be 'expected 2 + 3 == 5, but got 6' | |
| # perhaps this could be altered/extended with a way to insert the actual result with something like... |
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
| it 'should do something' do | |
| on_failure warn_that "@foo shouldn't be nil" do | |
| @foo.should_not be_nil | |
| end | |
| 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
| =CRASH REPORT==== 30-Mar-2009::09:25:05 === | |
| crasher: | |
| pid: <0.35.0> | |
| registered_name: [] | |
| exception exit: {bad_return, | |
| {{ejabberd_app,start,[normal,[]]}, | |
| {'EXIT', | |
| [47,101,116,99,47,101,106,97,98,98,101,114,100, | |
| 47,101,106,97,98,98,101,114,100,46,99,102,103, | |
| 58,32,"372",58,32, |
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
| %%% | |
| %%% Debian ejabberd configuration file | |
| %%% This config must be in UTF-8 encoding | |
| %%% | |
| %%% The parameters used in this configuration file are explained in more detail | |
| %%% in the ejabberd Installation and Operation Guide. | |
| %%% Please consult the Guide in case of doubts, it is available at | |
| %%% /usr/share/doc/ejabberd/guide.html | |
| %%% =================================== |
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
| =CRASH REPORT==== 30-Mar-2009::09:56:14 === | |
| crasher: | |
| pid: <0.35.0> | |
| registered_name: [] | |
| exception exit: {bad_return,{{ejabberd_app,start,[normal,[]]}, | |
| {'EXIT',"Error reading Mnesia database"}}} | |
| in function application_master:init/4 | |
| initial call: application_master:init(<0.5.0>,<0.34.0>, | |
| {appl_data,ejabberd, | |
| [ejabberd,ejabberd_sup, |
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
| The big long apt-get install with all the packages failed because some of the packages weren't found. I figured that the article might be out of date so I tried to just let apt-get figure out the dependencies. | |
| sudo apt-get install x11vnc | |
| tried startx but was told I needed to install xinit | |
| sudo apt-get install xinit | |
| Now startx & tells me I don't have permission to start x so |
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
| # | |
| # bash completion support for core Git. | |
| # | |
| # Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]> | |
| # Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/). | |
| # Distributed under the GNU General Public License, version 2.0. | |
| # | |
| # The contained completion routines provide support for completing: | |
| # | |
| # *) local and remote branch names |
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
| $ spec spec/unit/models/assessment_suite_spec.rb | |
| /Users/rick/fifthrail/legalpm/vendor/rails/activesupport/lib/active_support/dependencies.rb:442:in `load_missing_constant': uninitialized constant Test::Spec::Example (NameError) | |
| from /Users/rick/fifthrail/legalpm/vendor/rails/activesupport/lib/active_support/dependencies.rb:77:in `rake_original_const_missing' | |
| from /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2503:in `const_missing' | |
| from /Users/rick/fifthrail/legalpm/vendor/plugins/rspec/lib/spec/interop/test/unit/testcase.rb:22 | |
| from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' | |
| from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' | |
| from /Users/rick/fifthrail/legalpm/vendor/rails/activesupport/lib/active_support/dependencies.rb:155:in `require' | |
| from /Users/rick/fifthrail/legalpm/vendor/plugins/rspec/lib/spec/interop/test.rb:10 | |
| from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' |
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
| # This file is copied to ~/spec when you run 'ruby script/generate rspec' | |
| # from the project root directory. | |
| ENV["RAILS_ENV"] ||= 'test' | |
| require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT) | |
| require 'spec/autorun' | |
| require 'spec/rails' | |
| # Requires supporting files with custom matchers and macros, etc, | |
| # in ./support/ and its subdirectories. | |
| Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} |
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
| /* C code produced by gperf version 3.0.3 */ | |
| /* Command-line: gperf -C -p -j1 -i 1 -g -o -t -N rb_reserved_word -k'1,3,$' keywords */ | |
| #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \ | |
| && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \ | |
| && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \ | |
| && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \ | |
| && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \ | |
| && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \ | |
| && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \ |
OlderNewer