Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

We're gonna bdd this thing.
  • Loading branch information...
commit fb9470e2212283ecc0f3a310fec4e34fa2347ab2 1 parent 80467c3
Brian Dunn authored
4 TODO
View
@@ -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!
+
4 lib/stream.rb
View
@@ -0,0 +1,4 @@
+class Stream
+ def valid?
+ end
+end
53 sermonator.gemspec
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
5 spec/master_spec.rb
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
4 spec/spec_helper.rb
View
@@ -0,0 +1,4 @@
+require 'rubygems'
+gem 'rspec'
+require 'spec'
+require 'sermonator'
22 spec/stream_spec.rb
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
7 test/sermonator_test.rb
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
10 test/test_helper.rb
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
Please sign in to comment.
Something went wrong with that request. Please try again.