From c29f4af4f5747bd44926d495a7701412948bf32b Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Thu, 7 Mar 2013 03:04:56 +0100 Subject: [PATCH] add tests to spec, fix test pattern, fix test --- Rakefile | 2 +- awestruct.gemspec | 1 + spec/astruct_spec.rb | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) 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