From 5c4db681b744fb53b8886a79123d0b17979acd19 Mon Sep 17 00:00:00 2001 From: Matt Brewer Date: Fri, 15 Mar 2013 17:40:39 -0400 Subject: [PATCH] Basic test suite setup --- Gemfile | 2 ++ Gemfile.lock | 6 ++++-- README.md | 9 +++++++++ app/app_delegate.rb | 5 +++++ spec/helpers/.gitkeep | 0 spec/main_spec.rb | 7 +++++++ 6 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 app/app_delegate.rb create mode 100644 spec/helpers/.gitkeep create mode 100644 spec/main_spec.rb diff --git a/Gemfile b/Gemfile index dafab4e..3fd6541 100644 --- a/Gemfile +++ b/Gemfile @@ -3,3 +3,5 @@ source 'https://rubygems.org' # Specify your gem's dependencies in ProMotion.gemspec gemspec +# Use this in development +gem "motion-stump" diff --git a/Gemfile.lock b/Gemfile.lock index 7146e16..3e32e82 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,14 +1,16 @@ PATH remote: . specs: - ProMotion (0.4.0) + ProMotion (0.5.1) GEM - remote: http://rubygems.org/ + remote: https://rubygems.org/ specs: + motion-stump (0.2.0) PLATFORMS ruby DEPENDENCIES ProMotion! + motion-stump diff --git a/README.md b/README.md index ca24597..16739f3 100644 --- a/README.md +++ b/README.md @@ -782,3 +782,12 @@ If you need help, feel free to ping me on twitter @jamonholmgren or email jamon@ ## Contributing I'm really looking for feedback. Tweet me with your ideas or open a ticket (I don't mind!) and let's discuss. + +### Submitting a Pull Request + +1. Fork the project +2. Create a feature branch +3. Code +4. Update or create new specs +5. Make sure tests are passing by running `rake spec` +6. Submit pull request diff --git a/app/app_delegate.rb b/app/app_delegate.rb new file mode 100644 index 0000000..10d9b51 --- /dev/null +++ b/app/app_delegate.rb @@ -0,0 +1,5 @@ +class AppDelegate + def application(application, didFinishLaunchingWithOptions:launchOptions) + return true if RUBYMOTION_ENV == 'test' + end +end diff --git a/spec/helpers/.gitkeep b/spec/helpers/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/spec/main_spec.rb b/spec/main_spec.rb new file mode 100644 index 0000000..2ad68fa --- /dev/null +++ b/spec/main_spec.rb @@ -0,0 +1,7 @@ +describe "pro motion module" do + + it "should have 'PM' module" do + should.not.raise(NameError) { PM } + end + +end