Sha256: 45e43d3118b7ee1b29affdb65d7319742c5c0e93701aa79debcc7d263b5e329f

Contents?: true

Size: 1.81 KB

Versions: 57

Compression:

Stored size: 1.81 KB

Contents

# encoding: utf-8
# language: ja
@javascript
@standalone
機能: Run - プログラムの実行(standaloneモード)
  背景:
    前提 "Ruby" タブを表示する
    かつ プログラムの名前に "01.rb" を指定する
    かつ テキストエディタに "puts Hello, World!'" を入力済みである

  シナリオ: 実行前にプログラムのシンタックスエラーをチェックできる
    もし "実行ボタン" をクリックする
    かつ JavaScriptによるリクエストが終わるまで待つ

    ならば "メッセージ" に "エラー" を含むこと
    かつ "メッセージ" に "プログラムを実行できませんでした" を含むこと
    かつ "メッセージ" に "1行、19文字: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '('" を含むこと
    かつ "メッセージ" に "1行: unterminated string meets end of file" を含むこと

  シナリオ: 既存のファイルがある状態でプログラムを実行し、上書き保存をキャンセルする
    前提 ホームディレクトリに "n = 0" という内容の "01.rb" が存在する
    かつ 確認ダイアログをキャンセルするようにしておく

    もし "実行ボタン" をクリックする
    かつ JavaScriptによるリクエストが終わるまで待つ
    かつ JavaScriptによるリクエストが終わるまで待つ

    ならば 確認メッセージ "前に01.rbという名前でセーブしているけど本当にセーブしますか?\nセーブすると前に作成したプログラムは消えてしまうよ!" を表示すること
    かつ "メッセージ" に "プログラムの実行をキャンセルしました" を含むこと
    かつ ホームディレクトリの "01.rb" の内容が "n = 0" であること

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
smalruby-editor-0.3.1-x86-mingw32 spec/acceptance/standalone/run.feature
smalruby-editor-0.3.1 spec/acceptance/standalone/run.feature
smalruby-editor-0.3.0-x86-mingw32 spec/acceptance/standalone/run.feature
smalruby-editor-0.3.0 spec/acceptance/standalone/run.feature
smalruby-editor-0.2.7-x86-mingw32 spec/acceptance/standalone/run.feature
smalruby-editor-0.2.7 spec/acceptance/standalone/run.feature
smalruby-editor-0.2.6-x86-mingw32 spec/acceptance/standalone/run.feature
smalruby-editor-0.2.6 spec/acceptance/standalone/run.feature
smalruby-editor-0.2.5-x86-mingw32 spec/acceptance/standalone/run.feature
smalruby-editor-0.2.5 spec/acceptance/standalone/run.feature
smalruby-editor-0.2.4-x86-mingw32 spec/acceptance/standalone/run.feature
smalruby-editor-0.2.4 spec/acceptance/standalone/run.feature
smalruby-editor-0.2.3-x86-mingw32 spec/acceptance/standalone/run.feature
smalruby-editor-0.2.3 spec/acceptance/standalone/run.feature
smalruby-editor-0.2.2-x86-mingw32 spec/acceptance/standalone/run.feature
smalruby-editor-0.2.2 spec/acceptance/standalone/run.feature
smalruby-editor-0.2.1-x86-mingw32 spec/acceptance/standalone/run.feature
smalruby-editor-0.2.1 spec/acceptance/standalone/run.feature
smalruby-editor-0.2.0-x86-mingw32 spec/acceptance/standalone/run.feature
smalruby-editor-0.2.0 spec/acceptance/standalone/run.feature