diff --git a/Rakefile b/Rakefile index d60486bb..15633d1c 100644 --- a/Rakefile +++ b/Rakefile @@ -12,7 +12,7 @@ if !defined?(RSpec) else desc "Run all examples" RSpec::Core::RakeTask.new(:spec) do |t| - t.pattern = 'spec/**/*.rb' + t.pattern = 'spec/*_spec.rb' t.rspec_opts = ['-cfs'] end end diff --git a/awestruct.gemspec b/awestruct.gemspec index 80ad53c3..a24f585c 100644 --- a/awestruct.gemspec +++ b/awestruct.gemspec @@ -12,6 +12,7 @@ spec = Gem::Specification.new do |s| s.files = [ Dir['lib/**/*.rb'], Dir['lib/**/*.haml'], + Dir['spec/**/**'], Dir['man/*.1'], ].flatten s.executables = [ diff --git a/spec/astruct_spec.rb b/spec/astruct_spec.rb index 67d3e6a9..efc42bee 100644 --- a/spec/astruct_spec.rb +++ b/spec/astruct_spec.rb @@ -1,6 +1,6 @@ require 'awestruct/astruct' - +require 'awestruct/page' describe Awestruct::AStruct do