Skip to content

Commit

Permalink
add rspec
Browse files Browse the repository at this point in the history
  • Loading branch information
tomohiro committed Sep 20, 2012
1 parent 66d9e1d commit 92a5277
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .rspec
@@ -0,0 +1,2 @@
--color
--profile
7 changes: 6 additions & 1 deletion Rakefile
@@ -1,2 +1,7 @@
#!/usr/bin/env rake
require "bundler/gem_tasks"
require 'bundler/gem_tasks'

# RSpec
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task :default => :spec
10 changes: 10 additions & 0 deletions spec/airplayer_spec.rb
@@ -0,0 +1,10 @@
require 'spec_helper'

describe AirPlayer do
let(:app) { AirPlayer::App.new }
context 'App' do
it 'class type is Thor' do
expect(app).to be_kind_of Thor
end
end
end
4 changes: 4 additions & 0 deletions spec/spec_helper.rb
@@ -0,0 +1,4 @@
require 'rubygems'
require 'bundler/setup'

require 'airplayer'

0 comments on commit 92a5277

Please sign in to comment.