Skip to content

Instantly share code, notes, and snippets.

[Test]
public void MasterPageHasContentTitle()
{
string contentTitle = "Content Title";
var mockMaster = MockRepository.GenerateMock<App_Master.ITipsMaster>();
mockMaster.ContentTitle = contentTitle;
mockMaster.AssertWasCalled(x => x.ContentTitle = Arg<string>.Is.Equal(contentTitle));
}
[Test]
public void DefaultRouteMapsToHomeController()
{
RouteData routeData = "~/".Route();
Assert.That(routeData.Values["controller"], Is.EqualTo("home").IgnoreCase);
Assert.That(routeData.Values["action"], Is.EqualTo("index").IgnoreCase);
Assert.That(routeData.Values["id"], Is.Null);
}
[Test]
using System.Linq;
using System.Web.Routing;
using MvcContrib.TestHelper;
using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;
namespace NUnitMvc.Routes
{
/// <summary>
/// Summary description for RouteTests.
@hotgazpacho
hotgazpacho / gist:93041
Created April 10, 2009 11:06
ironruby rake compile stack trace
C:\Development\ironruby\Merlin\Main\Languages\Ruby>rake --tasks --trace
(in C:/Development/ironruby/Merlin/Main/Languages/Ruby)
rake aborted!
undefined method `join' for nil:NilClass
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/gem_path_searcher.rb:96:in `lib_dirs_for'
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/gem_path_searcher.rb:26:in `initialize'
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/gem_path_searcher.rb:25:in `each'
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/gem_path_searcher.rb:25:in `initialize'
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:684:in `new'
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:684:in `searcher'
require 'mscorlib'
module Kernel
alias_method :original_puts, :puts
def puts(string = nil)
originalColor = System::Console.ForegroundColor
System::Console.ForegroundColor = System::ConsoleColor.Yellow
original_puts string
System::Console.ForegroundColor = originalColor
git :init
# Set up .gitignore files
run %{find . -type d -empty | xargs -I xxx touch xxx/.gitignore}
file '.gitignore', <<-END
.DS_Store
coverage/*
log/*.log
db/*.db
db/*.sqlite3
--- !ruby/object:Gem::Specification
name: iron-term-ansicolor
version: !ruby/object:Gem::Version
version: 0.0.4
platform: universal-.net
authors:
- Will Green
- David Blackmon
- Ivan Porto Carrero
- Danny Coates
C:\Users\will.green\dev\shoulda>ir -S rake test
(in C:/Users/will.green/dev/shoulda)
config.gem: Unpacked gem gem_with_macro-0.0.1 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
DEPRECATION WARNING: Please update config/database.yml to use 'database' instead of 'dbfile'. (called from parse_sqlite_config! at C:/IronRuby/lib/ironruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/sqlite_adapter.rb:35)
[DEPRECATION] should_have_index is deprecated. Use should_have_db_index instead.
[DEPRECATION] should_have_named_scope is deprecated.
[DEPRECATION] should_have_named_scope is deprecated.
[DEPRECATION] should_have_named_scope is deprecated.
[DEPRECATION] should_have_named_scope is deprecated.
[DEPRECATION] should_have_named_scope is deprecated.
http://asliceofcheese.heroku.com/
App failed to start
Cannot write to outdated .bundle/environment.rb to update it
/disk1/home/slugs/175558_bb3b3e9_3626/mnt/.bundle/gems/gems/mongo-0.20.1/lib/../lib/mongo/connection.rb:699:in `receive_message_on_socket': Operation failed with the following exception: connection closed (Mongo::ConnectionFailure)
from /disk1/home/slugs/175558_bb3b3e9_3626/mnt/.bundle/gems/gems/mongo-0.20.1/lib/../lib/mongo/connection.rb:604:in `receive_header'
from /disk1/home/slugs/175558_bb3b3e9_3626/mnt/.bundle/gems/gems/mongo-0.20.1/lib/../lib/mongo/connection.rb:597:in `receive'
from /disk1/home/slugs/175558_bb3b3e9_3626/mnt/.bundle/gems/gems/mongo-0.20.1/lib/../lib/mongo/connection.rb:394:in `receive_message'
from /disk1/home/slugs/175558_bb3b3e9_3626/mnt/.bundle/gems/gems/mongo-0.20.1/lib/../lib/mongo/connection.rb:392:in `synchronize'
GET http://gemcutter.org/latest_specs.4.8.gz
302 Found
GET http://production.s3.rubygems.org/latest_specs.4.8.gz
304 Not Modified
GET http://gems.rubyforge.org/latest_specs.4.8.gz
302 Found
GET http://production.s3.rubygems.org/latest_specs.4.8.gz
304 Not Modified
Installing gem gherkin-1.0.28
C:/IronRuby/lib/ironruby/gems/1.8/gems/gherkin-1.0.28/.gitattributes