Running Tests in RubyMine: Overview & Improvements

RubyMine comes with a testing suite for running RSpec, Minitest, Cucumber, and other tests based on your current context, and working with them in a friendly graphical user interface. Let’s see how it works in the following example.

Run Tests

Once your database and test environment are all set up, you can run all tests in your application, directory, or file, or even run any specific test. Simply navigate to the desired scope, and choose Run test(s)… from the context menu. Alternatively, use the keyboard shortcut Ctrl+Shift+R on Mac or Ctrl+Shift+F10 on Linux/Windows:

Continue reading

Posted in Feature, Testing, WhatsMining | Tagged , , , | 4 Comments

Platform Improvements in RubyMine 2018.3

Hi all,

As you’ve probably already noticed, RubyMine 2018.3 comes with a number of platform improvements. Let’s quickly review the most notable changes in this blog post.

Search Everywhere

RubyMine 2018.3 has had some significant changes made to the Search Everywhere dialog (Shift+Shift). The updated dialog now incorporates all the other types of navigation dialogs – Class, File, Symbol, and Action: now you can simply press Tab to switch between these search types:

Continue reading

Posted in Announcement, WhatsMining | Tagged , , , | 1 Comment

RubyMine 2018.2.4 is Available

Hi all,

RubyMine 2018.2.4 (build 182.4323.73) is now available.

What’s new in this minor update:

  • Reworked autocompletion of the do keyword [RUBY-22543] [RUBY-22367]
  • Fixed YAML, HAML, and CoffeeScript issues

Download RubyMine 2018.2.4

See the release notes for the full list of improvements and please report any issues you encounter.

Cheers,
Your RubyMine Team

Posted in Announcement | Tagged | Leave a comment

Intention Actions in RubyMine

RubyMine provides you with a set of intention actions that can help you to quickly fix code smells, convert statements for better code style, add strings to locale dictionaries, use language injections, and do other handy things simply by pressing Alt+Enter. Let’s review all the basic and new intention actions added in RubyMine 2018.3.

Quick Overview

Let’s start with some basic examples:

Below is a two-line statement that uses a ternary operator. You can easily convert it to an if...end clause, which is considered preferable for multiline statements. Just put the caret anywhere inside the statement, and press Alt+Enter:

Continue reading

Posted in Feature, WhatsMining | Tagged , , | 2 Comments

RubyMine 2018.2.3 Is Available

Hi everyone,

RubyMine 2018.2.3 (build 182.4323.73) is now available. This minor release features an ability to explicitly run scripts with bundle exec. Previously RubyMine used RUBYOPT options to achieve the same result, which caused confusion and issues in specific cases (see RUBY-11434 & RUBY-22247).

To explicitly run scripts with bundle exec, go to Help | Find Action | Experimental features, and check ruby.force.explicit.bundle.exec:

explicit_bunde_exect

Note that this option will be enabled by default starting with v2018.3 (to be released in November 2018).

Some other annoying issues were also fixed in this build:

  • GEM_HOME/GEM_PATH not set” warning [RUBY-22254]
  • Inability to read the $GEM_HOME environment variable [RUBY-22237]

Download RubyMine 2018.2.3

See the release notes for the full list of improvements and please report any issues you encounter.

Cheers,
Your RubyMine Team

Posted in Announcement, Feature | Tagged | Leave a comment

I18n Features in RubyMine

This post will cover a number of handy options that RubyMine provides to help you internationalize your application, including the newest ones added in the recently announced RubyMine 2018.3.

Creating I18n translations

First of all, you can create an I18n property from a string for all existing dictionaries. To do this, simply put the caret on the desired string, press Alt+Enter to invoke Intention Actions, and Choose I18n string value. This will open a dialog where you can create a property key and provide translations for every locale:


Continue reading

Posted in Announcement, Feature, Uncategorized, WhatsMining | Tagged , , , | 2 Comments

RubyMine Refactorings: Overview & Improvements

RubyMine provides a number of refactorings that can help clean up your code quickly. In mere seconds, you can move files, extract code chunks into methods and variables, and rename values across your project. These options are available through the Refactor this popup, which is accessible by selecting Refactor | Refactor this or pressing Ctrl+T / Ctrl+Alt+Shift+T.

Continue reading

Posted in Feature, Productivity | Tagged , , | 4 Comments

RubyMine 2018.3 EAP is Open

Hi everyone,

RubyMine 2018.3 EAP1 (build 183.2153.13) is now open. Here’s the list of improvements introduced in this first Early Access build:

We will cover all these major changes in the next few blog posts.

Download RubyMine 2018.3 EAP

See the release notes for the full list of improvements, and please report any issues you encounter.

Cheers,
Your RubyMine Team

Posted in Announcement, WhatsMining | Tagged | 2 Comments

RubyMine 2018.2.2 Is Available

Hi everyone,

RubyMine 2018.2.2 (build 182.4129.29) is now available. The new build fixes the following issues:

Markdown

Other improvements:

  • Fixed running Cucumber features and scenarios [RUBY-22203]
  • Added an ability to disable the preselection of autocompletion elements on Enter [RUBY-22266]

Download RubyMine 2018.2.2

See the release notes for the full list of improvements and please report any issues you encounter.

Posted in Announcement | Tagged | Leave a comment

RubyMine 2018.2.1: Bug-fix Update

Hi everyone,

RubyMine 2018.2.1 (build 182.3911.41) is now available. This build provides a number of bug-fixes for the recently published v2018.2:

  • Fixed the inability to run Cucumber and RSpec tests on Windows [RUBY-21906], [RUBY-22232]
  • Fixed console output for programs using the TERM variable [RUBY-22220]
  • Other bug-fixes

See the release notes for the full list of improvements, and please report any issues you encounter.

Download RubyMine 2018.2.1

Cheers,
Your RubyMine team

Posted in Announcement | Tagged | 3 Comments