Permalink
Browse files

Switch from nothing to rspec. come up with some better names for stuff.

We're gonna bdd this thing.
  • Loading branch information...
1 parent 80467c3 commit fb9470e2212283ecc0f3a310fec4e34fa2347ab2 @briandunn committed May 29, 2010
Showing with 39 additions and 70 deletions.
  1. +4 −0 TODO
  2. +4 −0 lib/stream.rb
  3. +0 −53 sermonator.gemspec
  4. +5 −0 spec/master_spec.rb
  5. +4 −0 spec/spec_helper.rb
  6. +22 −0 spec/stream_spec.rb
  7. +0 −7 test/sermonator_test.rb
  8. +0 −10 test/test_helper.rb
View
4 TODO
@@ -0,0 +1,4 @@
+* Use the word Episode instead of sermon (as in podcast episode)
+* The episode should be the main model. It can then inform and request that a Master become a Stream.
+* that works well with like, episode.upload and episode.announce!
+
View
@@ -0,0 +1,4 @@
+class Stream
+ def valid?
+ end
+end
View
@@ -1,53 +0,0 @@
-# -*- encoding: utf-8 -*-
-
-Gem::Specification.new do |s|
- s.name = %q{sermonator}
- s.version = "0.1.0"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Brian Dunn"]
- s.date = %q{2009-09-27}
- s.default_executable = %q{sermonator}
- s.email = %q{brianpatrickdunn@gmail.com}
- s.executables = ["sermonator"]
- s.extra_rdoc_files = [
- "LICENSE",
- "README.rdoc"
- ]
- s.files = [
- ".document",
- ".gitignore",
- "LICENSE",
- "README.rdoc",
- "Rakefile",
- "VERSION",
- "bin/sermonator",
- "lib/blog_client.rb",
- "lib/sermonator.rb",
- "lib/sermonator/application.rb",
- "lib/sermonator/options.rb",
- "lib/tcf.rb",
- "sermonator.gemspec",
- "test/sermonator_test.rb",
- "test/test_helper.rb"
- ]
- s.homepage = %q{http://github.com/briandunn/sermonator}
- s.rdoc_options = ["--charset=UTF-8"]
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.5}
- s.summary = %q{A command line tool for publishing a raw audio file to a WordPress blog, with all kinds of settings hardcoded to be useful at my church.}
- s.test_files = [
- "test/sermonator_test.rb",
- "test/test_helper.rb"
- ]
-
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
-
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
- else
- end
- else
- end
-end
View
@@ -0,0 +1,5 @@
+require 'spec_helper'
+describe Master do
+ it 'should be a valid input to lame'
+ it 'should have a readable local file path'
+end
View
@@ -0,0 +1,4 @@
+require 'rubygems'
+gem 'rspec'
+require 'spec'
+require 'sermonator'
View
@@ -0,0 +1,22 @@
+require 'spec_helper'
+describe Stream do
+ describe 'creating the stream' do
+ before do
+ @stream = Stream.new
+ end
+ describe 'validating settings' do
+ describe 'with no settings' do
+ it do
+ @stream.valid?.should be_false
+ end
+ end
+ end
+ describe 'with valid settings' do
+ it "should use the bit rate it is given"
+ it "should set the id3 title to its title"
+ it "should set the artist to its speaker"
+ it "should put the date and artist in the file name"
+ it "should place the output file in the output directory it is given"
+ end
+ end
+end
View
@@ -1,7 +0,0 @@
-require 'test_helper'
-
-class SermonatorTest < Test::Unit::TestCase
- should "probably rename this file and start testing for real" do
- flunk "hey buddy, you should probably rename this file and start testing for real"
- end
-end
View
@@ -1,10 +0,0 @@
-require 'rubygems'
-require 'test/unit'
-require 'shoulda'
-
-$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
-$LOAD_PATH.unshift(File.dirname(__FILE__))
-require 'sermonator'
-
-class Test::Unit::TestCase
-end

0 comments on commit fb9470e

Please sign in to comment.