Skip to content

Commit

Permalink
colored rake spec with common specs
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermesilveira committed Oct 21, 2010
1 parent 5760b69 commit c101f13
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -108,7 +108,7 @@ end

RSpec::Core::RakeTask.new(:spec) do |t|
# t.spec_files = FileList['spec_*.rb']
# t.options = '-v'
t.spec_opts = ['--colour', '--format progress']
end

Rake::GemPackageTask.new(spec) do |pkg|
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Expand Up @@ -5,4 +5,4 @@
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}

require 'restfulie'
require 'restfulie'
File renamed without changes.
File renamed without changes.
Expand Up @@ -21,6 +21,7 @@ def initialize(name)

describe "Feed" do
it "should create a feed from builder DSL" do
pending
time = Time.now
some_articles = {:some_articles => [
{:id => 1, :title => "a great article", :updated => time},
Expand Down Expand Up @@ -60,6 +61,8 @@ def initialize(name)
end

it "should pluralize items on root and singularize on element" do
pending

time = Time.now
some_articles = [Item.new("training"), Item.new("books")]

Expand All @@ -83,6 +86,7 @@ def initialize(name)
describe "Entry" do

it "should use a default recipe extracting first root element that serializes an entire object if responds to to_xml" do
pending
time = Time.now
an_article = {:article => {:id => 1, :title => "a great article", :updated => time}}

Expand All @@ -91,6 +95,7 @@ def initialize(name)
end

it "should use a default recipe that serializes an entire object if responds to to_xml" do
pending
time = Time.now
an_article = {:id => 1, :title => "a great article", :updated => time}

Expand All @@ -99,6 +104,7 @@ def initialize(name)
end

it "should create an entry from builder DSL" do
pending
an_article = {:article => {:id => 1, :title => "a great article"}}

entry = to_xml(an_article) do |member, article|
Expand All @@ -117,6 +123,7 @@ def initialize(name)
end

it "should be able to declare links inside values block" do
pending
an_article = {:article => {:id => 1, :title => "a great article"}}

entry = to_xml(an_article) do |member, article|
Expand All @@ -140,6 +147,7 @@ def initialize(name)
end

it "should create an entry from an already declared recipe" do
pending

describe_recipe(:simple_entry) do |member, article|
member.values do |values|
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c101f13

Please sign in to comment.