Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Fix proteus #10

Merged
merged 6 commits into from
Jul 3, 2015
Merged

Fix proteus #10

merged 6 commits into from
Jul 3, 2015

Conversation

romulomachado
Copy link
Contributor

  • Fix system call of git ls-remote.
  • Update RSpec to 3.3 version to use match output.
  • Add tests for an existing kit
  • Tests are green (were broken). Set up Travis CI maybe?

[Closes #9]

@romulomachado romulomachado changed the title Fix proteus [Closes #9] Fix proteus Jun 30, 2015
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|

spec.add_development_dependency "bundler", "~> 1.7"
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "rspec", "~> 2.6"
spec.add_development_dependency "rspec", "~> 3.3"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are differences between rspec 2.x and rspec 3.x.
They recommend upgrading to rspec 2.99 first.

I assume they have been addressed...

@elle
Copy link

elle commented Jun 30, 2015

Other than a couple of comments, LGTM

streams = STDOUT, STDERR
on_hold = streams.collect { |stream| stream.dup }
streams.each do |stream|
stream.reopen(RUBY_PLATFORM =~ /mswin/ ? 'NUL:' : '/dev/null')
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about moving this ternary out for clarity?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jyurek

...
stream.reopen(null_stream)
...

def null_stream
  if RUBY_PLATFORM =~ /mswin/
    'NUL:'
  else
    '/dev/null'
  end
end

Does this look better?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That looks great to me

@romulomachado
Copy link
Contributor Author

@elle @jyurek @tabfugnic Adjustments made and commits squashed!

* Before all specs remove `spec/dummy` folder used for cloning the repo
* Add scenario for middleman kit
  * it's slow because it's not being stubbed
  * it does everything quietly (STDOUT and STDERR are being silenced)
joshuaogle added a commit that referenced this pull request Jul 3, 2015
@joshuaogle joshuaogle merged commit 73eee9a into thoughtbot:master Jul 3, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants