Skip to content

Commit

Permalink
Add specs for min width/height
Browse files Browse the repository at this point in the history
  • Loading branch information
ezkl committed Apr 5, 2012
1 parent 6fdd564 commit 8c00556
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .rvmrc
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ else
fi

# If you use bundler, this might be useful to you:
# if [[ -s Gemfile ]] && {
# ! builtin command -v bundle >/dev/null ||
# builtin command -v bundle | grep $rvm_path/bin/bundle >/dev/null
# }
# then
# printf "%b" "The rubygem 'bundler' is not installed. Installing it now.\n"
# gem install bundler
# fi
# if [[ -s Gemfile ]] && builtin command -v bundle >/dev/null
# then
# bundle install | grep -vE '^Using|Your bundle is complete'
# fi
if [[ -s Gemfile ]] && {
! builtin command -v bundle >/dev/null ||
builtin command -v bundle | grep $rvm_path/bin/bundle >/dev/null
}
then
printf "%b" "The rubygem 'bundler' is not installed. Installing it now.\n"
gem install bundler
fi
if [[ -s Gemfile ]] && builtin command -v bundle >/dev/null
then
bundle install | grep -vE '^Using|Your bundle is complete'
fi
2 changes: 2 additions & 0 deletions spec/capit/capture_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
specify { @capit.filename.should == "capit.jpeg" }
specify { @capit.user_agent.should == "CapIt! [http://github.com/meadvillerb/capit]" }
specify { @capit.max_wait.should == 15000 }
specify { @capit.min_width.should == 1024 }
specify { @capit.min_height.should == 768 }
end
end

Expand Down

0 comments on commit 8c00556

Please sign in to comment.