Skip to content

Instantly share code, notes, and snippets.

@bil-bas
Forked from banister/bacon.rb
Created October 26, 2010 16:06
Show Gist options
  • Save bil-bas/647187 to your computer and use it in GitHub Desktop.
Save bil-bas/647187 to your computer and use it in GitHub Desktop.
require 'rubygems'
require '../lib/remix'
require 'bacon'
describe 'Test basic remix functionality' do
before :each do
class Module
public :include
end
@a = Module.new
@b = Module.new
@c = Module.new
end
subject { Module.new.include @a, @b }
describe 'include_after' do
it "should place the module in the correct position" do
subject.include_after @a, @c
subject.ancestors[2].should.equal @c
end
end
describe 'include_before' do
it "should place the module in the correct position" do
subject.include_before @b, @c
subject.ancestors[2].should.equal @c
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment