Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed no longer applicable stories.

  • Loading branch information...
commit bfff83d097c1c108536b43ff87ccab858f75fa1d 1 parent dbaa84a
@technicalpickles authored
View
82 features/generator/git.feature
@@ -18,85 +18,3 @@ Feature: git support
Then a sane '.gitignore' is created
- Scenario: baseline repository
- Given a working directory
- And I have configured git sanely
- When I generate a project named 'the-perfect-gem' that is 'zomg, so good'
-
- Then a commit with the message 'Initial commit to the-perfect-gem.' is made
- And 'README.rdoc' was checked in
- And 'Rakefile' was checked in
- And 'LICENSE' was checked in
- And 'lib/the-perfect-gem.rb' was checked in
- And '.gitignore' was checked in
-
- And no files are untracked
- And no files are changed
- And no files are added
- And no files are deleted
-
- Scenario: bacon
- Given a working directory
- And I have configured git sanely
- When I generate a bacon project named 'the-perfect-gem' that is 'zomg, so good'
-
- Then 'spec/spec_helper.rb' was checked in
- And 'spec/the-perfect-gem_spec.rb' was checked in
-
- Scenario: minitest
- Given a working directory
- And I have configured git sanely
- When I generate a minitest project named 'the-perfect-gem' that is 'zomg, so good'
-
- Then 'test/helper.rb' was checked in
- And 'test/test_the-perfect-gem.rb' was checked in
-
- Scenario: rspec
- Given a working directory
- And I have configured git sanely
- When I generate a rspec project named 'the-perfect-gem' that is 'zomg, so good'
-
- Then 'spec/spec_helper.rb' was checked in
- And 'spec/the-perfect-gem_spec.rb' was checked in
-
- Scenario: shoulda
- Given a working directory
- And I have configured git sanely
- When I generate a shoulda project named 'the-perfect-gem' that is 'zomg, so good'
-
- Then 'test/helper.rb' was checked in
- And 'test/test_the-perfect-gem.rb' was checked in
-
- Scenario: testunit
- Given a working directory
- And I have configured git sanely
- When I generate a testunit project named 'the-perfect-gem' that is 'zomg, so good'
-
- Then 'test/helper.rb' was checked in
- And 'test/test_the-perfect-gem.rb' was checked in
-
- Scenario: micronaut
- Given a working directory
- And I have configured git sanely
- When I generate a micronaut project named 'the-perfect-gem' that is 'zomg, so good'
-
- Then 'examples/example_helper.rb' was checked in
- And 'examples/the-perfect-gem_example.rb' was checked in
-
- Scenario: cucumber
- Given a working directory
- And I have configured git sanely
- And I want cucumber stories
- When I generate a project named 'the-perfect-gem' that is 'zomg, so good'
-
- Then 'features/the-perfect-gem.feature' was checked in
- And 'features/support/env.rb' was checked in
- And 'features/step_definitions/the-perfect-gem_steps.rb' was checked in
-
- Scenario: shindo
- Given a working directory
- And I have configured git sanely
- When I generate a shindo project named 'the-perfect-gem' that is 'zomg, so good'
-
- Then 'tests/tests_helper.rb' was checked in
- And 'tests/the-perfect-gem_tests.rb' was checked in
View
16 features/step_definitions/generator_steps.rb
@@ -296,22 +296,6 @@
assert_equal 'git@github.com:technicalpickles/the-perfect-gem.git', remote.url
end
-Then /^a commit with the message '(.*)' is made$/ do |message|
- assert_match message, @repo.log.first.message
-end
-
-Then /^'(.*)' was checked in$/ do |file|
- status = @repo.status[file]
-
- assert_not_nil status, "wasn't able to get status for #{file}"
- assert ! status.untracked, "#{file} was untracked"
- assert_nil status.type, "#{file} had a type. it should have been nil"
-end
-
-Then /^no files are (\w+)$/ do |type|
- assert_equal 0, @repo.status.send(type).size
-end
-
Then /^Rakefile has "(.*)" as the default task$/ do |task|
@rakefile_content ||= File.read(File.join(@working_dir, @name, 'Rakefile'))
assert_match "task :default => :#{task}", @rakefile_content
View
1  lib/thor/actions/git_init.rb
@@ -26,7 +26,6 @@ def exists?
end
def invoke_with_conflict_check(&block)
- require 'ruby-debug'
if ! exists?
base.shell.say_status "git init", "already a git repo", :blue if config[:verbose]
else
Please sign in to comment.
Something went wrong with that request. Please try again.