Giter Club home page Giter Club logo

ruby_rspec's Introduction

TDDBC for Ruby with RSpec

これは、TDDBCのRuby向けRSpecプロジェクトです。

Build Status

動作確認環境

  • ruby 2.7以降

セットアップ

gem install bundler
bundle install
bundle update

rspec コマンドを実行して

$ rspec

Sample
  #say
    Using expect to
      should say 'Hello TDD BootCamp!'
    Using subject it should
      should eq "Yeah! TDD BootCamp!"
    Using power assert
      should 
            be asserted by{ sample.say(greeting) == "Wow! TDD BootCamp!" }
                            |      |   |         |
                            |      |   |         true
                            |      |   "Wow!"
                            |      "Wow! TDD BootCamp!"
                            #<Sample:0x0000563cf08833e8>

Finished in 0.10792 seconds (files took 0.80775 seconds to load)
3 examples, 0 failures

のようにテストが正常終了すればOKです。

ライブラリ

guard コマンドを実行すると入力待ちの状態になるので、あとはファイルが変更される度にテストが実行されます

OSごとに下記のソフトを入れるとテスト結果がOS毎の通知欄に表示されます

Windows

notifu: http://www.paralint.com/projects/notifu/

Mac

growl: http://growl.info/

他Unix系(Linux, FreeBSD, OpenBSD and Solaris)

libnotify: https://developer.gnome.org/libnotify/

ruby_rspec's People

Contributors

hrt-ykym avatar joker1007 avatar kazuhitonakayama avatar kesin11 avatar kyontan avatar ogom avatar shishi avatar sue445 avatar toshi-kawanishi avatar twada avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ruby_rspec's Issues

Gemfile.lockをリポジトリに含めるかどうか

#4@joker1007 さんから bundle update を勧められたわけですが、 bundle update するか Gemfile.lock を削除するかで迷ったので相談したいです。

bundle update 忘れるから Gemfile.lock は無くてもいいような気もするんですが、gemが最新になった時に急に動かなくなるかもしれないというのがちょっと心配。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.