Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Add Comment
Please, Sign In to add comment