Commit 67cb162
Changed files (2)
lib
lib/movie_library.rb
@@ -9,7 +9,7 @@ class MovieLibrary
def add(movie)
@movies.push(movie) unless include?(movie)
- end
+ end
def total_count
@movies.size
spec/movie_library_spec.rb
@@ -18,5 +18,42 @@ describe MovieLibrary do
library.add(man_on_fire)
library.total_count.should == 1
end
+
+ it 'cannot add two movies that have the same title (logically the same)' do
+ end
+ end
+
+ context 'Searching for movies' do
+ it 'Can find all pixar movies' do
+ end
+
+ it 'Can find all movies published by pixar or disney' do
+ end
+
+ it 'Can find all movies not published by pixar' do
+ end
+
+ it 'Can find all movies released after 2004' do
+ end
+
+ it 'Can find all movies released between 1982 and 2003 - Inclusive' do
+ end
+ end
+
+ context 'Sorting movies' do
+ it 'Sorts all movies by descending title' do
+ end
+
+ it 'Sorts all movies by ascending title' do
+ end
+
+ it 'Sorts all movies by descending release date' do
+ end
+
+ it 'Sorts all movies by ascending release date' do
+ end
+
+ it 'Sorts all movies by preferred studios and release date ascending' do
+ end
end
end