Skip to content
Browse files

init.rb for plugin installation

  • Loading branch information...
1 parent 97d185d commit c3eb5e8c0712a3b022485c272d96c6ec57f81d1c @rick rick committed
Showing with 11 additions and 1 deletion.
  1. +0 −1 TODO.txt
  2. +1 −0 init.rb
  3. +1 −0 lib/tasks/deploy.rb
  4. +9 −0 spec/init_spec.rb
View
1 TODO.txt
@@ -1,4 +1,3 @@
- - spec-drive the init.rb for plugin installations
- spec-drive the install.rb (dump the README file)
- update the README
- push gem to gemcutter
View
1 init.rb
@@ -0,0 +1 @@
+require File.expand_path(File.join(File.dirname(__FILE__), 'lib', 'whiskey_disk'))
View
1 lib/tasks/deploy.rb
@@ -1,4 +1,5 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'whiskey_disk'))
+require 'rake'
require 'vlad'
namespace :deploy do
View
9 spec/init_spec.rb
@@ -0,0 +1,9 @@
+require File.expand_path(File.join(File.dirname(__FILE__), 'spec_helper.rb'))
+require 'rake'
+
+describe 'when the init.rb plugin loader has been included' do
+ it 'should load the main library' do
+ require(File.expand_path(File.join(File.dirname(__FILE__), '..', 'init')))
+ $".should.include(File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'whiskey_disk.rb')))
+ end
+end

0 comments on commit c3eb5e8

Please sign in to comment.
Something went wrong with that request. Please try again.